On 18/09/2021 03:32, Enrique Artal wrote:
Hi,
In Fedora 34 I am not able to autostart dropbox in KDE. I have tried with systemd with
the following dropbox.service file put in .config/systemd/user:
[Unit]
Description=Dropbox as a user service
After=local-fs.target network.target
[Service]
Type=simple
ExecStart=/usr/bin/dropbox start
ExecStop=/usr/bin/dropbox stop
Restart=on-failure
RestartSec=1
Environment=DISPLAY=:0
[Install]
WantedBy=default.target
It works with systemctl --user start dropbox but if I enable the service with systemctl
--user enable dropbox, after login the service is dead. What am I missing? Thanks,
Enrique.
I'd say the first thing you're missing is checking the journal for errors. :-)
The second thing, I don't use dropbox, that is a GUI yes? Chances are the unit is
being started before X11 is started.
Try changing you After to
After=plasma-core.target
--
Nothing to see here.