Repository navigation
use uwsm to properly wrap applications as systemd units - #182
Conversation
|
Should we take care of some of the items (waybar) in |
|
Generally: yes. Autostart-applications should be handled as such + moving all the env to |
|
Hmm, I don't think this is necessary for all user-land apps that are started and closed by the user directly. We won't have this in all the .desktop files either. But I'm open to doing this for the long running processes we have in exec-ones, like waybar. |
|
It shouldn't be added to the desktop files. It's something that gets handled by the launcher and whatever else actually opens the desktop files. This is needed, f.e. otherwise your browser tabs won't be preserved when shutting down etc. There's no real downside to this. Systemd can't manage system resources, if you start all applications under the hyprland process. It's discouraged on the hyprland wiki for a reason. |
|
So when wofi launches an app via .desktop, this is already applied? It's only not when hyprland does the opening of the app? |
|
That's what the wofi keybind change is for, yeah. Usually every other launcher has an appropriate setting, but wofi is ... basically unmaintained, hence the wild exec for the keybind (copied from the uwsm readme). |
|
We need to change all the exec-once instances too, no? |
Generally: yes. But as i wrote above: i thought a smaller PR is better. |
|
Wapping the exec-once autostarts in uwm app won't get us the same effect? Would prefer to try this as a whole switchover, run it for a bit, see if there's anything that's not right. |
Kiiinda... as in: xdg-autostart applications also get started in specific order etc.. It's a whole spec. Generally it's a more portable approach anyways, since you just define the autostart files in |
|
Hmm, don't want to go that far. I like how Hyprland has it set up with exec-once. But if we can wrap that, happy to give it a try. |
5c901c0 to
a54e163
Compare
|
Done. I've only wrapped the GUI exec-once though. |
|
The wofi starter isn't working right. It doesn't start Alacritty stuff like Activity and it throws an error message if you escape out of it without selecting. |
|
ah damn. although there's this PR now #202 which i hope gets merged. |
See here: https://wiki.hypr.land/Useful-Utilities/Systemd-start/#launching-applications-inside-session