samschott / maestral

Open-source Dropbox client for macOS and Linux
https://maestral.app
MIT License
3.12k stars 64 forks source link

Duplicate menubar icons #876

Closed jdsimcoe closed 8 months ago

jdsimcoe commented 1 year ago

Describe the bug I have an entry in Login Items to run Maestral on system startup. It works but I have two Maestral menubar icons at all times:

image

To Reproduce

System:

samschott commented 1 year ago

@jdsimcoe, this might be a side-effect of recently renaming the bundle identifier. Can you check in ~/Library/Launch Agents if you have multiple entries starting with com.samchott.maestral? In particular, any entries starting with com.samchott.maestral-cocoa are from a previous version and can be removed.

jdsimcoe commented 1 year ago

I can only find a single entry in LaunchAgents: com.samschott.maestral.maestral.plist

jdsimcoe commented 1 year ago

@samschott But I also had it added here:

image

I removed it from the Login Items in Settings.app to see if that solves it.

ronabop commented 1 year ago

Seeing the same thing after a recent upgrade (of a machine that had been off for a few weeks, if that is relevant), with only one com.samschott.maestral.maestral.plist

Screenshot 2023-05-07 at 11 51 46 AM

samschott commented 1 year ago

@ronabop, it looks like the "Sam Schott" entry in "Allow in the Background" will also start the Maestral GUI.

To get back to a single, properly identified login item, could you (1) remove the login item at the top and (2) disable and reenable the "Start on login" checkbox in Maestral#s settings? This should hopefully leave you with a single item names "Maestral" in the "Allow in the Background" list.

smellymoo commented 1 year ago

this is related, you can open maestral multiple times, and it adds new menubar icons, which shouldn't be possible.

samschott commented 8 months ago

this is related, you can open maestral multiple times, and it adds new menubar icons, which shouldn't be possible.

It's possible, but all GUI instances will talk to the same sync process.

The original issue seems to have come from a migration of login items in macOS. If you see a Maestral entry in "Settings > General > Login Items > Open at login", please go ahead and delete that.