49 lines
1.2 KiB
Text
49 lines
1.2 KiB
Text
|
xfce-session-systemd
|
||
|
====================
|
||
|
|
||
|
# SystemD Unit for XFCE
|
||
|
|
||
|
This provides a framework for utilizing graphical-session.target and xfce-session.target for systemd user sessions to enable services or persistent applications to be running within your graphical session.
|
||
|
|
||
|
## Example Units
|
||
|
|
||
|
These example units can be stored in ~/.config/systemd/user/ and used, modified to fit your needs more specifically, but provides a basis of how this can make persistent applications restart on crash or being killed otherwise.
|
||
|
|
||
|
### devilspie2.service
|
||
|
|
||
|
This service unit is specifically designed to only start on xfce-session's specifically.
|
||
|
|
||
|
```
|
||
|
[Unit]
|
||
|
Description=devilspie2 Service
|
||
|
PartOf=graphical-session.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
Restart=always
|
||
|
RestartSec=1
|
||
|
ExecStart=/usr/bin/devilspie2 -d
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=xfce-session.target
|
||
|
```
|
||
|
|
||
|
### kalu.service
|
||
|
|
||
|
This is an example using kalu designed to run in any session not just XFCE. (however this package only includes xfce-session).
|
||
|
|
||
|
```
|
||
|
[Unit]
|
||
|
Description=Kalu Update Notifications
|
||
|
PartOf=graphical-session.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
Restart=always
|
||
|
RestartSec=1
|
||
|
ExecStart=/usr/bin/kalu
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=graphical-session.target
|
||
|
```
|