From c73854c46d0c1c458d5c85aa450b8676f21673aa Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Tue, 6 Feb 2024 18:59:31 +0100 Subject: Use service template for starting desktop applications --- .config/systemd/user/desktop-app@.service | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .config/systemd/user/desktop-app@.service (limited to '.config/systemd/user/desktop-app@.service') 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 -- cgit v1.1