Fix variables not getting passed to user services
This commit is contained in:
parent
33127a072e
commit
eb00e209e6
|
@ -10,6 +10,7 @@
|
|||
destination = "/bin/dbus-sway-environment";
|
||||
executable = true;
|
||||
text = ''
|
||||
systemctl --user import-environment
|
||||
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
|
||||
systemctl --user stop pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
|
||||
systemctl --user start pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
|
||||
|
|
|
@ -16,9 +16,10 @@
|
|||
Unit = {
|
||||
Description = "Discord Internet voice chat";
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
After = [ "graphical-session.target" ];
|
||||
After = [ "graphical-session.target" "pipewire-pulse.service" "tray.service" "telegram.service" ];
|
||||
};
|
||||
Service = {
|
||||
ExecStartPre = "/usr/bin/env sleep 1s";
|
||||
ExecStart = "${pkgs.webcord}/bin/webcord";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
|
@ -28,10 +29,10 @@
|
|||
Unit = {
|
||||
Description = "Telegram Internet chat";
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
After = [ "graphical-session.target" "pipewire-pulse.service" ];
|
||||
After = [ "graphical-session.target" "pipewire-pulse.service" "tray.service" ];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${pkgs.sway}/bin/swaymsg exec -- ${pkgs.tdesktop}/bin/telegram-desktop";
|
||||
ExecStart = "${pkgs.tdesktop}/bin/telegram-desktop";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
Install = { WantedBy = [ "sway-session.target" ]; };
|
||||
|
|
Loading…
Reference in a new issue