Client only starts automatically on Windows
On Linux, or Ubuntu at least, the client doesn’t automatically start on startup but needs to be started manually every time. This is really annoying and should just be automatic, as it is on OS X and Windows.
Other programs do this by adding themselves to the Startup Applications.
- [x] Implement Windows backend
- [x] Implement Linux backend
- [x] Implement Mac OS backend
- [x] Wire up option
- [x] Ensure autostart gets trigggered if the account is configured successfully
- [x] Remove option from Windows Installer, ensure that the global autostart gets disabled.
cc @dragotin @danimo
Just as a sidenote: It's not automatic on OS X either, nor on any other Linux distro.
Updated description
Oh, yeah then that’s an issue as well. Thanks for updating. :)
Btw I’m just trying to put the Steps from the wiki document into milestones & issues, will let you know when I’m done so we can see if that’s cool.
If you are using Ubuntu 12.04, you can click on the little sprocket icon in the top right (where you would logout etc), then open "Startup Applications..." and add owncloud to that list there. The file to add is /usr/share/applications/owncloud.desktop
We need to install the desktop file to /etc/xdg/autostart That will do for all Linux'es as long they follow the freedesktop standards.
See for reference http://standards.freedesktop.org/autostart-spec/autostart-spec-0.5.html
But if we do that, it means that is started together with the desktop environment and probably up before the network is up. We need to test that if the behaviour is fine than.
On MacOsX, as a workaround, you could tell Mac to run owncloud in the Preferences App. Select System/User, Pick a User, Select Startup and click on + button.
And for Ubuntu, you need to add an ~/.config/autostart/owncloud.desktop similar to this:
[Desktop Entry]
Type=Application
Exec=owncloud
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en]=ownCloud
Name=ownCloud
Comment[en]=
Comment=
As an example, the Dropbox entry looks like this (note the GenericName, Comment, Icon, Categories and StartupNotify)
[Desktop Entry]
Name=Dropbox
GenericName=File Synchronizer
Comment=Sync your files across computers and to the web
Exec=dropbox start -i
Terminal=false
Type=Application
Icon=dropbox
Categories=Network;FileTransfer;
StartupNotify=false
Depends on #726 for UI
Yep, but even without UI to uncheck it, autostart should be default.
@jancborchardt IMHO, ownCloud should auto-start if:
- it has been started at least once (could be triggered by the installer on Windows) AND
- a valid configuration exists
Rationale: There is nothing more annoying in a multi-user scenario than installed-but-unused applications that someone else installed popping up asking for configuration. In Enterprise environments it's not acceptable at all.
Yes, i agree (think this was discussed in a different issue or on the ML). I just thought with the 'depends on #726 for UI' you mean that UI is a blocker. And neiter of the 2 points you just mentioned need UI - so I just misunderstood. :)
Implemented in master for Windows and Linux (as advised above). Mac OS support pending.
Commit c06410e7268114c7d97b848f05a087b1fab133ff
Added progress check boxes to summary for more finegrained progress tracking.
OS X done c8d9e8458a7ac3e96cebf8e021b55cb312aabd1a 892419e8809254bc76bfbd597b483c00a941f8d4
Woohooooooo I love you guys! So this is fixed and can be closed?
@jancborchardt Almost. The challenge right now is to smoothly migrate windows users. That's not as simple as it looks, because the installer used to write machine-wide startup settings, and the app is now user-specific.
We could just leave that to the user as their personal problem, since it's a one-time-pain, but I am not very happy about that. Otherwise, all we can do is do some settings for the one running the installer (also not very convincing).
The real alternatives are:
- Leave it as it is (existing users have to explicitly enable autostart, new users will get it set once they have configured ownCloud)
- Enable autostart once as part of a "Just upgraded to version 1.4" routine, which would need to be added. That routine would need to be written as well.