From ecedc2d93f6f57583089758f4ab1a93074e5e31f Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Sat, 6 Sep 2014 02:38:57 -0400 Subject: [PATCH] Various changes to systemd files Updated PATH in emacs.service putting paths with the form ~/* first so the binary's located there have higher priority Added DISPLAY environment variable to the following service files: + unclutter + xbindkeys + xcompmgr + xscreensaver This was an attempt to fix an CURRENTLY UNRESOLVED ISSUE. That is the above service files don't start when you initially log in. But once X is loaded can be started successfully by "systemctl --user restart ". Signed-off-by: Collin J. Doering --- .config/systemd/user/emacs.service | 2 +- .config/systemd/user/unclutter.service | 2 ++ .config/systemd/user/xbindkeys.service | 2 +- .config/systemd/user/xcompmgr.service | 2 +- .config/systemd/user/xscreensaver.service | 1 + 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.config/systemd/user/emacs.service b/.config/systemd/user/emacs.service index db430ef..0691b49 100644 --- a/.config/systemd/user/emacs.service +++ b/.config/systemd/user/emacs.service @@ -5,7 +5,7 @@ Description = Emacs: the extensible, self-documenting text editor Type = forking ExecStart = /usr/bin/emacs --daemon ExecStop = /usr/bin/emacsclient --eval "(progn (setq kill-emacs-hook 'nil) (kill-emacs))" -Environment = PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/android-sdk/platform-tools:/opt/android-sdk/tools:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/smlnj/bin:/opt/maven/bin:/opt/NX/bin:/home/collin/.cabal/bin:/home/collin/.bin:/home/collin/.gem/ruby/2.0.0/bin +Environment = "PATH=/home/collin/.cabal/bin:/home/collin/.gem/ruby/2.0.0/bin:/home/collin/.bin:/home/collin/.texlive/2013/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/android-sdk/platform-tools:/opt/android-sdk/tools:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/smlnj/bin:/opt/maven/bin:/opt/NX/bin" Restart = always [Install] diff --git a/.config/systemd/user/unclutter.service b/.config/systemd/user/unclutter.service index 6958e3a..21e6eb9 100644 --- a/.config/systemd/user/unclutter.service +++ b/.config/systemd/user/unclutter.service @@ -2,7 +2,9 @@ Description = Remove idle cursor image from screen [Service] +type = simple ExecStart = /usr/bin/unclutter +Environment = "DISPLAY=:0" Restart = always [Install] diff --git a/.config/systemd/user/xbindkeys.service b/.config/systemd/user/xbindkeys.service index 76c070c..f5c1218 100644 --- a/.config/systemd/user/xbindkeys.service +++ b/.config/systemd/user/xbindkeys.service @@ -3,7 +3,7 @@ Description = A grabbing keys program for X [Service] ExecStart = /usr/bin/xbindkeys -n -f %h/.xbindkeysrc -Environment=DISPLAY=:0 +Environment = "DISPLAY=:0" Restart = always [Install] diff --git a/.config/systemd/user/xcompmgr.service b/.config/systemd/user/xcompmgr.service index b95bed1..270441f 100644 --- a/.config/systemd/user/xcompmgr.service +++ b/.config/systemd/user/xcompmgr.service @@ -3,7 +3,7 @@ Description = Simple X compositing manager [Service] ExecStart = /usr/bin/xcompmgr -Environment=DISPLAY=:0 +Environment = "DISPLAY=:0" Restart = always [Install] diff --git a/.config/systemd/user/xscreensaver.service b/.config/systemd/user/xscreensaver.service index 43e6604..41d7fc9 100644 --- a/.config/systemd/user/xscreensaver.service +++ b/.config/systemd/user/xscreensaver.service @@ -3,6 +3,7 @@ Description = Extensible screen saver framework, plus locking [Service] ExecStart = /usr/bin/xscreensaver -no-splash +Environment = "DISPLAY=:0" Restart = always [Install]