Created
February 14, 2017 16:04
-
-
Save Waltibaba/37f54b21eceeaea86b098189395c771c to your computer and use it in GitHub Desktop.
systemd graphical script/prog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description="graphical application" | |
JobTimeoutSec=60 | |
AssertPathExists=/home/USERNAME | |
[Service] | |
WorkingDirectory=/home/USERNAME | |
Environment=XAUTHORITY=/home/USERNAME/.Xauthority | |
Environment=DISPLAY=:0 | |
Type=forking | |
ExecStart=/usr/bin/xclock | |
Nice=0 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment