1

I installed "onedrive" from repo. Works great but I don't want it to start automatically. I'm tired of turning it off after each reboot - how to fix it? I'm turning it off using systemctl --user stop onedrive I was expecting systemctl --user disable onedrive will turn off autostart but it has no effect - systemctl --user status onedrive stil shows enabled;:

Loaded: loaded (/usr/lib/systemd/user/onedrive.service; enabled; vendor preset: enabled)

and it starts after reboot.

2

2 Answers 2

2

This issue is caused by the Ubuntu PPA package creating a symbolic link when the package is installed:

Created symlink /etc/systemd/user/default.target.wants/onedrive.service → /usr/lib/systemd/user/onedrive.service.

To resolve this situation, this symbolic link needs to be removed:

sudo rm /etc/systemd/user/default.target.wants/onedrive.service

To fix this issue permanently, the PPA package needs to be updated so that this symbolic link is not created.

The above information is also listed in https://github.com/abraunegg/onedrive/issues/1274 which tracks this particular issue.

0

If the app is located in startup applications it is accessed by pressing left windows (or whatever you have set up as your Super key) and typing startup in the search box, select the startup applications icon then disable OneDrive from there by highlighting it and then clicking on remove.

Just to be clear, this will only remove OneDrive from Startup Applications - it will not remove it from your system.

enter image description here

2
  • Using kubuntu... but no, no mention of onedrive in startup applications. I also had "Stacer" installed so I checked there but no mentions of onedrive either in the startup apps or services.
    – Lord_JABA
    Apr 5, 2021 at 10:44
  • Not a kubuntu user but does this answer help in any way?
    – 24601
    Apr 5, 2021 at 10:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.