-
Notifications
You must be signed in to change notification settings - Fork 3

Description
It's not typical that non-GNOME apps add support for GNOME search provider, but still something to consider.
Implement support for GNOME search provider (https://developer.gnome.org/documentation/tutorials/search-provider.html). Something similiar to dialect (https://github.com/dialect-app/dialect, program to translate text but via 3rd party services like google translate) will be great!
Dialect's search provider works in simple manner: You input some text in GNOME activities and app with search provider will... provide options.

Upon picking this option (enter or click), it will open window of Dialect with text that user input (in this case "Hello World") and then translation will happen. Simple as that.
If window of program is already opened when user made search request, then you should not open new window of program, but instead focus on already opened and replace currently active text with new one.
Documentation actually points out this:
Another point to keep in mind is that searching in the shell should not affect the UI of your application if it is already running until the user explicitly chooses to open (one or all) search results with the application. Once the user does that, it is expected that you reuse the already open window and switch it to the search view.