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 <unit>". Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
This commit is contained in:
parent
d261ff7704
commit
ecedc2d93f
|
@ -5,7 +5,7 @@ Description = Emacs: the extensible, self-documenting text editor
|
||||||
Type = forking
|
Type = forking
|
||||||
ExecStart = /usr/bin/emacs --daemon
|
ExecStart = /usr/bin/emacs --daemon
|
||||||
ExecStop = /usr/bin/emacsclient --eval "(progn (setq kill-emacs-hook 'nil) (kill-emacs))"
|
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
|
Restart = always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
Description = Remove idle cursor image from screen
|
Description = Remove idle cursor image from screen
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
type = simple
|
||||||
ExecStart = /usr/bin/unclutter
|
ExecStart = /usr/bin/unclutter
|
||||||
|
Environment = "DISPLAY=:0"
|
||||||
Restart = always
|
Restart = always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -3,7 +3,7 @@ Description = A grabbing keys program for X
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart = /usr/bin/xbindkeys -n -f %h/.xbindkeysrc
|
ExecStart = /usr/bin/xbindkeys -n -f %h/.xbindkeysrc
|
||||||
Environment=DISPLAY=:0
|
Environment = "DISPLAY=:0"
|
||||||
Restart = always
|
Restart = always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -3,7 +3,7 @@ Description = Simple X compositing manager
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart = /usr/bin/xcompmgr
|
ExecStart = /usr/bin/xcompmgr
|
||||||
Environment=DISPLAY=:0
|
Environment = "DISPLAY=:0"
|
||||||
Restart = always
|
Restart = always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -3,6 +3,7 @@ Description = Extensible screen saver framework, plus locking
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart = /usr/bin/xscreensaver -no-splash
|
ExecStart = /usr/bin/xscreensaver -no-splash
|
||||||
|
Environment = "DISPLAY=:0"
|
||||||
Restart = always
|
Restart = always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
Reference in New Issue