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";
|
destination = "/bin/dbus-sway-environment";
|
||||||
executable = true;
|
executable = true;
|
||||||
text = ''
|
text = ''
|
||||||
|
systemctl --user import-environment
|
||||||
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
|
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 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
|
systemctl --user start pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
|
||||||
|
|
|
@ -16,9 +16,10 @@
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Discord Internet voice chat";
|
Description = "Discord Internet voice chat";
|
||||||
PartOf = [ "graphical-session.target" ];
|
PartOf = [ "graphical-session.target" ];
|
||||||
After = [ "graphical-session.target" ];
|
After = [ "graphical-session.target" "pipewire-pulse.service" "tray.service" "telegram.service" ];
|
||||||
};
|
};
|
||||||
Service = {
|
Service = {
|
||||||
|
ExecStartPre = "/usr/bin/env sleep 1s";
|
||||||
ExecStart = "${pkgs.webcord}/bin/webcord";
|
ExecStart = "${pkgs.webcord}/bin/webcord";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
|
@ -28,10 +29,10 @@
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Telegram Internet chat";
|
Description = "Telegram Internet chat";
|
||||||
PartOf = [ "graphical-session.target" ];
|
PartOf = [ "graphical-session.target" ];
|
||||||
After = [ "graphical-session.target" "pipewire-pulse.service" ];
|
After = [ "graphical-session.target" "pipewire-pulse.service" "tray.service" ];
|
||||||
};
|
};
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = "${pkgs.sway}/bin/swaymsg exec -- ${pkgs.tdesktop}/bin/telegram-desktop";
|
ExecStart = "${pkgs.tdesktop}/bin/telegram-desktop";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
Install = { WantedBy = [ "sway-session.target" ]; };
|
Install = { WantedBy = [ "sway-session.target" ]; };
|
||||||
|
|
Loading…
Reference in a new issue