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

"Full Distribution" Download Can't find opml.root #9

Closed
tedchoward opened this Issue Apr 27, 2018 · 14 comments

Comments

Projects
None yet
6 participants
@tedchoward
Copy link
Owner

tedchoward commented Apr 27, 2018

For some reason, the "Full Distribution" download is unable to find opml.root.

Steps:

  • Download OPML-full-distribution.dmg
  • Double-click OPML-full-distribution.dmg
  • Drag OPML folder to /Applications
  • Double-click /Applications/OPML.app

Expected behavior:

  • OPML editor launches and starts working

Actual behavior:
screen shot 2018-04-27 at 5 28 53 pm

Workaround (launch from terminal):

  • Launch Terminal.app
  • type cd and drag the /Applications/OPML folder to the terminal window
  • type ./OPML.app/Contents/MacOS/OPML
  • Press return

I don't know why he workaround works and double-clicking the app bundle doesn't.

FWIW: The release works fine on my machine until I upload to Github. The files I download from Github have this problem.

@mrDarcyMurphy

This comment has been minimized.

Copy link

mrDarcyMurphy commented Apr 29, 2018

@tedchoward https://gist.github.com/mrDarcyMurphy/bc488c261883866ac504062ecc163bb3

I saw the same thing, so ran the app a few different ways and posted the logs to the gist above. Hope it helps.

@tedchoward

This comment has been minimized.

Copy link
Owner Author

tedchoward commented Apr 30, 2018

@mrDarcyMurphy Thanks! I appreciate that.

I have a new workaround:

  1. Download the "Full Distribution" DMG
  2. Double-click OPML-full-distribution.dmg
  3. Drag OPML folder somewhere (e.g. /Applications, the desktop)
  4. Double-click OPML folder
  5. Drag OPML.app to the Desktop
  6. Drag OPML.app back to the OPML folder
  7. Double-click OPML.app
@mrDarcyMurphy

This comment has been minimized.

Copy link

mrDarcyMurphy commented Apr 30, 2018

@tedchoward Cool. I'll try it out when I get the chance. In the meantime, I noticed you may have a hard coded path. Check this line.

@tedchoward

This comment has been minimized.

Copy link
Owner Author

tedchoward commented Apr 30, 2018

  • I had a theory that the application bundle was getting the wrong path.
  • How does the kernel find the root database file?
    • Short answer: It looks in the same directory as the running application bundle.
  • I published v10.2d4 which logs out the path to the application bundle when it tries to find the root database.
    • It confirmed my suspicions
Apr 30 11:46:24 TedBook-Pro OPML[10764]: bundle url = file://localhost/var/folders/rw/2xy3lr9d0l7gvxprcm9vblth0000gn/T/AppTranslocation/FCD3E2C1-7C19-4010-896E-29F986FF2821/d/OPML.app/
  • It appears that macOS is copying the application to a "secure" location before executing it.
  • Therefore the application can't find the root database file
  • For some reason, copying the application bundle to a new location, and then copying it back causes macOS to stop doing this.
@tedchoward

This comment has been minimized.

Copy link
Owner Author

tedchoward commented Apr 30, 2018

The "Security Feature" causing this headache is called App Translocation, and is part of macOS's Gatekeeper as of macOS 10.12 (Sierra)

https://weblog.rogueamoeba.com/2016/06/29/sierra-and-gatekeeper-path-randomization/

@tedchoward

This comment has been minimized.

Copy link
Owner Author

tedchoward commented Apr 30, 2018

I'm going to close this issue, because there's nothing I can do about it.

I have updated the README.md file with instructions to download the OPML folder separately from the application bundle. This effectively works around the problem.

I have also removed all "Full Distribution" downloads from the Releases page.

@remorse

This comment has been minimized.

Copy link

remorse commented Aug 28, 2018

I commented on another ticket about this, but in case it helps someone looking for a solution, you can do something like:

Command to remove translocation from an application in Mac OS High Sierra

	xattr -dr com.apple.quarantine "/Applications/[application].app"

to remove the app translocation from the application bundle. (Obviously, you would replace [application] with the name of the actual application...)

@maysonicboom

This comment has been minimized.

Copy link

maysonicboom commented Oct 20, 2018

It runs, but unable to open opml.root. Using the Terminal launch method workaround above, It aborts with following messages:

Maysons-iMac:OPML maysonlancaster$ ./OPML.app/Contents/MacOS/OPML
dyld: lazy symbol binding failed: Symbol not found: _OTLIFOStealList
Referenced from: /Applications/OPML/./OPML.app/Contents/MacOS/OPML
Expected in: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices

dyld: Symbol not found: _OTLIFOStealList
Referenced from: /Applications/OPML/./OPML.app/Contents/MacOS/OPML
Expected in: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices

Abort trap: 6

@maysonicboom

This comment has been minimized.

Copy link

maysonicboom commented Oct 20, 2018

Also, got the 32-bit (I believe) warning that it's not optimized and won't run in future versions.

@RoZZaH

This comment has been minimized.

Copy link

RoZZaH commented Jan 20, 2019

same warning as maysonicboom above..

@scripting

This comment has been minimized.

Copy link

scripting commented Jan 20, 2019

Guys this isn't a bug report -- we know that Mojave is the last version of Mac OS that runs Frontier.

@RoZZaH

This comment has been minimized.

Copy link

RoZZaH commented Jan 21, 2019

@tedchoward

This comment has been minimized.

Copy link
Owner Author

tedchoward commented Jan 21, 2019

It runs on Mojave. It's a 32 bit app. Apple has told us that Mojave is the last version of macOS to support 32 bit apps.

@RoZZaH

This comment has been minimized.

Copy link

RoZZaH commented Jan 21, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.