mirror of
https://github.com/rembo10/headphones.git
synced 2026-04-05 04:29:25 +01:00
Merge remote-tracking branch 'CameronNemo/master' into develop
This commit is contained in:
18
init.upstart
Normal file
18
init.upstart
Normal file
@@ -0,0 +1,18 @@
|
||||
# headphones - Automatic music downloader
|
||||
#
|
||||
# This is a session/user job. Install this file into /usr/share/upstart/sessions
|
||||
# if headphones is installed system wide, and into $XDG_CONFIG_HOME/upstart if
|
||||
# headphones is installed per user. Change the executable path appropiately.
|
||||
|
||||
start on desktop-start
|
||||
stop on desktop-end
|
||||
|
||||
env CONFIG=""$XDG_CONFIG_HOME"/headphones"
|
||||
env DATA=""$XDG_DATA_HOME"/headphones"
|
||||
|
||||
pre-start script
|
||||
[ -d "$CONFIG" ] || mkdir -p "$CONFIG"
|
||||
[ -d "$DATA" ] || mkdir -p "$DATA"
|
||||
end script
|
||||
|
||||
exec Headphones.py --nolaunch --config "$CONFIG"/config.ini --datadir "$DATA"
|
||||
Reference in New Issue
Block a user