Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App works only if dmg is mounted #228

Open
bartek-galazka opened this issue Sep 26, 2024 · 9 comments
Open

App works only if dmg is mounted #228

bartek-galazka opened this issue Sep 26, 2024 · 9 comments
Labels
macos-12 macOS Monterey

Comments

@bartek-galazka
Copy link

Recap:

  • Downloaded the DMG release
  • Mounted DMG
  • Installed it on macOS 12.6 by putting .app in Application folder
  • Unmounted DMG
  • Tried to open - nothing happened just tray icon seen for "0.00001 s" and disapeared
  • Nothing works in background
  • The ~/Library/Application Support/Syncthing/syncthing.log syncthing daemon logfile is NOT created

Works only if dmg is mounted

@xor-gate xor-gate added the macos-12 macOS Monterey label Sep 27, 2024
@xor-gate
Copy link
Member

Hi @bartek-galazka, thanks for the report. Could you check the following:

  • Which version are you using?
  • Execute defaults read com.github.xor-gate.syncthing-macosx Executable from Terminal.app (console)

My iMac is running still on macOS 12.7.6 so I have a similair setup.

@xor-gate
Copy link
Member

xor-gate commented Sep 27, 2024

Check for Quarantine Flag

macOS sometimes adds a quarantine flag when downloading apps from the internet, preventing the app from launching properly.

To check for the quarantine flag, run the following command in Terminal:
xattr -lr /Applications/<YourApp>.app

If you see com.apple.quarantine in the output, remove the quarantine flag using:
sudo xattr -dr com.apple.quarantine /Applications/<YourApp>.app

Gatekeeper and App Verification

Sometimes macOS Gatekeeper blocks apps from unknown developers.
Try opening the app by right-clicking the app in /Applications and selecting Open. This often forces Gatekeeper to bypass the security warning.
You can also check System Preferences → Security & Privacy → General to allow the app to be opened if a warning is listed

@bartek-galazka
Copy link
Author

Hi @bartek-galazka, thanks for the report. Could you check the following:

  • Which version are you using?
  • Execute defaults read com.github.xor-gate.syncthing-macosx Executable from Terminal.app (console)

My iMac is running still on macOS 12.7.6 so I have a similair setup.

Syncthing-1.27.12-1.dmg

image

@bartek-galazka
Copy link
Author

Check for Quarantine Flag

macOS sometimes adds a quarantine flag when downloading apps from the internet, preventing the app from launching properly.

To check for the quarantine flag, run the following command in Terminal: xattr -lr /Applications/<YourApp>.app

If you see com.apple.quarantine in the output, remove the quarantine flag using: sudo xattr -dr com.apple.quarantine /Applications/<YourApp>.app

I did this. Still doesn't work. But I still see many other things in the output like this:

image

Maybe this is the reason?

Gatekeeper and App Verification

Sometimes macOS Gatekeeper blocks apps from unknown developers. Try opening the app by right-clicking the app in /Applications and selecting Open. This often forces Gatekeeper to bypass the security warning. You can also check System Preferences → Security & Privacy → General to allow the app to be opened if a warning is listed

Not the case, that was the first thing I have checked :)

@bartek-galazka
Copy link
Author

Now I noticed this:

image

@xor-gate
Copy link
Member

What does Execute defaults read com.github.xor-gate.syncthing-macosx Executable from Terminal.app (console) say?

@xor-gate
Copy link
Member

Please paste the whole error text and not a half a screenshot

@bartek-galazka
Copy link
Author

  • defaults read com.github.xor-gate.syncthing-macosx Executable
image

@bartek-galazka
Copy link
Author

Please paste the whole error text and not a half a screenshot

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macos-12 macOS Monterey
Projects
None yet
Development

No branches or pull requests

2 participants