xybu / onedrive-d-old

Microsoft OneDrive client on Linux.
http://xybu.me/projects/onedrive-d/
GNU Lesser General Public License v3.0
820 stars 143 forks source link

Start automatically #204

Open mrAshpool opened 8 years ago

mrAshpool commented 8 years ago

I've been trying to start the app automatically using cron or init.d without success. The scripts run manually have no issue. I'm running Ubuntu with no GUI installed.

Has anyone been able to auto start, or am i wasting my time?

AptFox commented 8 years ago

I solved this by running the script at startup via the gnome 3 gui. You could do the same thing from terminal. here's a link on how:

http://askubuntu.com/questions/814/how-to-run-scripts-on-start-up

mrAshpool commented 8 years ago

Thanks for the reference, but I've tried each of the methods in the post, and while I can get test scripts to start, the onedrive-d status never shows as running

Similarly, there are lots of guides available on auto starting onedrive-d with a gui. However without a gui there are just alot of unresolved posts

skjongithub commented 8 years ago

How about writing "onedrive-d start" into etc/rc.local?

mrAshpool commented 8 years ago

Yes, I did to no avail Does this method work for you?

linuxmintnewbie commented 7 years ago

In linuxmint 18, OneDrive has been working well for me ever since I went to menu-startup apps-command - and created a startup command ¨onedrive-d start¨. I suppose if that doesn´t work you could try a startup command ¨onedrive-d start --debug¨, which creates a regular process instead of a daemon. By the way, my initial setup was a little different than here. I followed the example on http://www.avoiderrors.net/how-to-sync-microsoft-onedrive-in-linux/#comment-15080 Best of luck to all. Making this work was crucial for me to stick with Linux...