desktop icon indicating copy to clipboard operation
desktop copied to clipboard

"Launch on System Startup" no longer works

Open RozenixVR opened this issue 8 months ago • 7 comments

⚠️ Before submitting, please verify the following: ⚠️

Bug description

When installing Nextcloud Desktop v33 or newer on macOS the application no longer seems to auto launch it self, this appears to only be an issue on new installs.

Comparing old and new installs I've noticed that previously under Login Options > App Background Activity a listing for Nextcloud GmbH was added, this seems to no longer happen for new installs. (Not sure if these are 100% related though)

Steps to reproduce

  1. Get a Mac that previously didn't have Nextcloud Desktop installed.
  2. Download the Nextcloud Desktop / Files v33+ and install it.
  3. Open the application, log in and confirm that: a. Launch on System Startup is enabled in the settings. b. Files are syncing correctly.
  4. Restart the Mac without enabling Reopen windows when logging in.

Expected behavior

The app should automatically start when the user logs in.

Which files are affected by this bug

All?

Operating system

macOS

Which version of the operating system you are running.

macOS 26.3.1(a)

Package

Official macOS Virtual files 12+ universal pkg

Nextcloud Server version

32.0.5

Nextcloud Desktop Client version

33.0.2

Is this bug present after an update or on a fresh install?

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

Are you using an external user-backend?

  • [ ] Default internal user-backend
  • [ ] LDAP/ Active Directory
  • [x] SSO - SAML
  • [ ] Other

Nextcloud Server logs

Not available at the moment, can provide later if required for this.

Additional info

Here is a screenshot of the Login Objects menu in the settings: Image

RozenixVR avatar Apr 01 '26 11:04 RozenixVR

Here are the cleaned logs from the Desktop Application:

debug_clean.zip

RozenixVR avatar Apr 01 '26 11:04 RozenixVR

It's funny because on Linux the desktop client starts two times now. One via autostart and a second time via systemd. A lot of customers are complaining that nextcloud starts multiple times.

melroy89 avatar Apr 01 '26 12:04 melroy89

I just tested and confirm this

Rello avatar Apr 01 '26 13:04 Rello

@melroy89 The automatic launch of an app on login differs completely from platform to platform. Linux is unrelated.

I recall this topic from an earlier project I worked on elsewhere. The launch at login APIs were deprecated for a decade already but Apple did not provide a replacement for a long time. Especially for App Store publishing, this was a problem. Our project still uses deprecated legacy APIs to meddle in system files which the app sandbox finally cuts off. We need to migrate to an embedded helper app.

https://developer.apple.com/documentation/servicemanagement/updating-helper-executables-from-earlier-versions-of-macos

i2h3 avatar Apr 01 '26 14:04 i2h3

I’m having the same issue with version 33.0.2. The client doesn’t launch when I log in to my Mac. To try and fix this, I manually added Nextcloud to the startup items in System Preferences, and the client does launch alongside Finder, but it doesn’t log in to the Nextcloud account. This might be because, in this way, Nextcloud starts a few seconds before Tailscale and cannot ‘see’ the server (?). In any case, it does not reconnect once Tailscale is up and running. If I close the client and reopen it, it asks me to authenticate by opening the web browser. If I check the logs in the web interface, I see there are many alerts and errors regarding login attempts (one every 30 seconds or so):

Image

As you can see in the screenshot, after several attempts the server blocks the login due to "TooManyRequests"

I don’t think this happened with versions 33.0.0 or 33.0.1, but I’m not 100% sure.

Could you advise whether it’s a good idea to revert to 33.0.0 or 33.0.1? Or do you think the problem will be resolved very soon with the next version?

Thank you very much!

Edit: If I don’t add Nextcloud to the startup items and open the app manually once Finder has finished launching, there’s no problem.

ismasans avatar Apr 02 '26 08:04 ismasans

The client doesn’t launch when I log in to my Mac.

I am working on a solution which will be delivered as part of 33.0.3. 😉

I manually added Nextcloud to the startup items in System Preferences, and the client does launch alongside Finder, but it doesn’t log in to the Nextcloud account.

Because then it is managed by the system and has user consent. That is different from the legacy APIs we used programmatically which are not based on user consent. But there are replacements for that by now. The rest with the login is out of scope of this issue. 🫥

This might be because, in this way, Nextcloud starts a few seconds before Tailscale and cannot ‘see’ the server (?).

I do not know what Tailscale is and what role it plays in this. 😅

Could you advise whether it’s a good idea to revert to 33.0.0 or 33.0.1? Or do you think the problem will be resolved very soon with the next version?

Those versions do not make a difference in that regard, the changes were focussed on other critical parts (mainly: fixing the Sparkle updater and the app sandbox migration user experience).

i2h3 avatar Apr 02 '26 08:04 i2h3

I do not know what Tailscale is and what role it plays in this. 😅

Tailscale is a VPN service that creates a peer-to-peer network. Any device with the service installed and connected to the same Tailnet can connect to one another without needing to open ports or know each other’s public IP addresses. I’ve installed it on the server running Nextcloud, as well as on all my Macs and phones.

https://tailscale.com/

ismasans avatar Apr 02 '26 09:04 ismasans