compositor: Fix starting graphical programs on launch

This commit is contained in:
Charlotte Van Petegem 2023-07-16 15:15:38 +02:00
parent 98ea7c2350
commit 81ccc67c60
No known key found for this signature in database
GPG key ID: 019E764B7184435A
2 changed files with 13 additions and 6 deletions

View file

@ -27,14 +27,15 @@
systemd.user.services.keepassxc = {
Unit = {
Description = "KeepassXC startup";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
PartOf = [ "river-session.target" ];
Wants = [ "waybar.service" ];
After = [ "river-session.target" "waybar.service" ];
};
Service = {
ExecStart = "${pkgs.keepassxc}/bin/keepassxc";
Restart = "always";
};
Install.WantedBy = [ "graphical-session.target" ];
Install.WantedBy = [ "river-session.target" ];
};
};
};