client
client copied to clipboard
Unable to modify autostart on mac
Launch on login seems to be active on mac independent of the user settings/ disabling has no effect.
The client restarted again and again after a crash.
Temporary work-around: edit ~/Library/LaunchAgents/com.owncloud.desktopclient.plist
and change the value for RunAtLoad
to false like this:
<key>RunAtLoad</key>
<false/>
The client restarted again and again after a crash.
Yes, on purpose. But we can turn this off in the launchd plist file. Currently it's set as:
<key>KeepAlive</key>
<dict>
<key>Crashed</key>
<true/>
<key>SuccessfulExit</key>
<false/>
</dict>
Launch on login seems to be active on mac independent of the user settings/ disabling has no effect.
I tried to reproduce this with my own build of master (not installed, but run from QtCreator), and I cannot reproduce this. Which build should I use, or do I need to install it into /Applications
?
Temporary work-around: edit
~/Library/LaunchAgents/com.owncloud.desktopclient.plist
and change the value forRunAtLoad
to false like this:<key>RunAtLoad</key> <false/>
The client restarted again and again after a crash.
Yes, on purpose. But we can turn this off in the launchd plist file. Currently it's set as:
<key>KeepAlive</key> <dict> <key>Crashed</key> <true/> <key>SuccessfulExit</key> <false/> </dict>
Launch on login seems to be active on mac independent of the user settings/ disabling has no effect.
The issue was a crash on startup and no chance to kill it...
Hmm it was auto starting the client in my dev env.
Changes to
Had no effect the client was started again after login.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<dict>
<key>Crashed</key>
<true/>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>Label</key>
<string>com.owncloud.desktopclient</string>
<key>Program</key>
<string>/Users/hannah/ownbuild/master/downloads/git/owncloud/build-owncloud-client-ownBuild-Debug/bin/owncloud.app/Contents/MacOS/owncloud</string>
<key>RunAtLoad</key>
<false/>
</dict>
</plist>
As it fails to load a lib it will try to restart again and again and again. All the time the checkbox for start at launch isn't even checked.
Ok, can you see what happens when you set the Crashed
value to <false/>
?
Then it stopps, but if its in a crashing loop it might overwrite the file before I'm able to change it.
With a fresh install it is also impossible to enable autostart.
Once that PR is merged, remove ~/Library/LaunchAgents/com.owncloud.desktopclient.plist
, then it will get re-created at the next start.
Enabling also doesn't work :P
This was fixed after merging 245047d40b40260c1c7dcbfe8bb48a4a848ab2b1
Test steps:
-
enable autostart, then restart your Mac: Should start automatically
-
disable autostart, then restart your Mac: Should not start automatically
Passed on mac 3.0.0 beta1
we also need to test migration clean mac (VM), install 2.11 update to 3.0 see wheter autostart persisted
Test with the next daily build
Test failed
- Install 2.11.1, make sure Start on login is checked
- Update to 3.0.0.9153-daily20221122
Start on login is not checked after the update.