diff options
author | Patrick Spek <p.spek@tyil.nl> | 2024-02-06 18:59:31 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2024-02-06 18:59:31 +0100 |
commit | c73854c46d0c1c458d5c85aa450b8676f21673aa (patch) | |
tree | 6c54f66ff5a660671b6d6b7d57041ae3ec72cfe1 /.config/systemd/user/desktop-app@.service | |
parent | 17d13e3153c27db6bc78514d737db7b92b22807e (diff) |
Use service template for starting desktop applications
Diffstat (limited to '.config/systemd/user/desktop-app@.service')
-rw-r--r-- | .config/systemd/user/desktop-app@.service | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.config/systemd/user/desktop-app@.service b/.config/systemd/user/desktop-app@.service new file mode 100644 index 0000000..4b818ae --- /dev/null +++ b/.config/systemd/user/desktop-app@.service @@ -0,0 +1,19 @@ +[Unit] +Description=Manage an x11 application +PartOf=graphical-session.target + +[Service] +Type=exec +Restart=on-failure + +ExecSearchPath=%h/.local/bin +ExecSearchPath=/usr/local/bin +ExecSearchPath=/usr/bin +Environment=PATH=/home/tyil/.local/bin:/home/tyil/.config/shell/wrappers.d:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin +WorkingDirectory=%h + +ExecStartPre=sleep 5 +ExecStart=%i + +[Install] +WantedBy=desktop.target |