Re: autostart dropbox

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
_______________________________________________
kde mailing list -- kde@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kde-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kde@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [KDE Users]     [Fedora General Discussion]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Triage]     [Coolkey]     [Yum Users]     [Yosemite Forum]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux