Use persistent systemd units for autostart
This commit is contained in:
12
autostart/services/screencfg.service
Normal file
12
autostart/services/screencfg.service
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
BindsTo=autostart.target
|
||||
ConditionEnvironment=MACHINE_DEFAULT_SCREENPROFILE
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
# systemd.service(5):
|
||||
|
||||
# > The command to execute may contain spaces, but control characters are not
|
||||
# > allowed.
|
||||
ExecStart=bash -c '%h/.screencfg/${MACHINE_DEFAULT_SCREENPROFILE}.sh'
|
||||
RemainAfterExit=true
|
||||
Reference in New Issue
Block a user