-
Notifications
You must be signed in to change notification settings - Fork 3
Add WebSearchPlugin #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add WebSearchPlugin #19
Conversation
leolost2605
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, thank you this looks very promising only two minor comments :)
plugins/WebSearchPlugin/Plugin.vala
Outdated
| } | ||
|
|
||
| public override async void activate () throws Error { | ||
| Process.spawn_command_line_async (@"flatpak-spawn --host xdg-open \"$url\""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use Gtk.UriLauncher here which uses portals and doesn't need the extra permission for the flatpak-spawn --host
plugins/WebSearchPlugin/Plugin.vala
Outdated
| } | ||
|
|
||
| public override async void activate () throws Error { | ||
| Process.spawn_command_line_async (@"flatpak-spawn --host xdg-open \"$url\""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
That's great, I'll adjust those items. Thank you very much. |
…ncher as requested in the review.
…-web-search-plugin
|
@leolost2605 I made the requested corrections. I await your review, thank you. |
Add WebSearchPlugin, which allows you to open links directly in the system's default browser or perform searches via Google, DuckDuckGo, or Bing. Closes #1.
Search

Open URL
