git.lucas.co / cce-cloud
cloud storage client
git clone https://git.lucas.co/cce-cloud.git

cce-cloud.service (1.2K)

 1 [Unit]
 2 Description=CCE Cloud Menu Daemon
 3 After=graphical-session.target
 4 PartOf=graphical-session.target
 5 
 6 [Service]
 7 Type=simple
 8 ExecStart=%h/.local/bin/cce-cloud --daemon
 9 Restart=on-failure
10 RestartSec=3
11 # The daemon spawns the user's app-menu launches as children; with the
12 # default control-group kill mode a service restart silently kills every
13 # app ever launched from the menu. Only signal the daemon itself.
14 KillMode=process
15 Environment=RUST_LOG=info
16 # App launches inherit this PATH; without %h/.local/bin, desktop entries
17 # with bare Exec names fail to spawn.
18 # LOAD-BEARING. A systemd user service inherits PATH=/usr/local/bin:/usr/bin,
19 # and every cce binary is installed to ~/.local/bin. This daemon LAUNCHES
20 # things — .desktop entries whose Exec= is a bare name by DE convention
21 # (`Exec=cce-browser %u`), and the apps the launcher spawns inherit this
22 # environment. Drop this line and every one of them fails with ENOENT, from a
23 # launcher that looks like it did nothing. cce-grid had no equivalent, which
24 # is exactly how its context menu shipped silently broken.
25 Environment=PATH=%h/.local/bin:/usr/local/bin:/usr/bin
26 
27 [Install]
28 WantedBy=graphical-session.target