-
Notifications
You must be signed in to change notification settings - Fork 29
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
Replace "-sh", "-c" with "env", "-S" #275
base: master
Are you sure you want to change the base?
Conversation
Trying to get a rid of the `sh -c` wrappers within hyprland session: - testing a patched hyprland since 0.47.2 -> work - nwg-drawer, nwg-menu already got rid of - now did the same `env -S` "trick" with walker as my favorite app runner (and more). As a first only the interactions.go file modified and tested - in use. I'll need to check events, plugins, ai, clipboard, theme, ui first then test them separately. Running programs, wayland or xwayland works (Through hyprland-polkit-agent, which adds its own `/bin/sh` wrap, :) )
Hello, thank you for your contribution. I'm wondering: would it be better to let this be defined via cfg? |
Thanks, for your quick answer. And thanks for walker itself, really nice! Of course cfg definition would give a certain flexibility. It would be good to know, why they are there in the first place? So maybe there's no big need there at the first place. |
Pretty sure I just added it for preserving existing env-vars etc when launching things. |
Great, would you test it yourself at this stage? The fact it is working for me just one positive sign. Also I need to learn walker, as I literally use it for launching stuff, calc stuff checking currency rates and initiate google(web) search. Just like in macOS's Spotlight I'm working with. Aaand now I just saw it no longer shows in hint the currency value, but websearch only. :) |
Could you replace every |
Replacing "sh" "-c" with "env" "-S"
Replacing "sh" "-c" with "env" "-S"
Replacing "sh" "-c" with "env" "-S"
Replacing "sh" "-c" with "env" "-S"
Replacing "sh" "-c" with "env" "-S"
Replacing "sh" "-c" with "env" "-S"
Replacing "sh" "-c" with "env" "-S"
Sure, all of them done. Also, I'm not really familiar with go, is there a way to make the built walker binary smaller? |
Clipboard, translator, calc module works.
I've just realized I got a bunch of Gtk error messages if I run walker in CLI directly, without its "service mode pair" as I usually do. By testing clipboard, I've got the same Gtk error messages, but with walker service in another cli |
Trying to get a rid of the
sh -c
wrappers within hyprland session:sh -c
wrappingsenv -S
"trick" with walker as my favorite app runner (and more).As a first step - only the interactions.go file modified and tested - I'm using daily always.. I'll need to check and test the others: events, plugins, ai, clipboard, theme, ui.
Running programs, wayland or xwayland works (Through hyprland-polkit-agent, which adds its own
/bin/sh
wrap, :) )