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

[macOS] Launcher in 4.31 cannot find its companion shared library when invoked via symlink #570

Open
guw opened this issue Mar 27, 2024 · 1 comment

Comments

@guw
Copy link
Contributor

guw commented Mar 27, 2024

The layout on macOS is different. Eclipse is bundled as a macOS app Eclipse.app. We have a symlink eclipse ⇒ Eclipse.app/Contents/MacOS/eclipse to the real binary within the app.

We use this to invoke some applications:

eclipse -application org.eclipse.equinox.p2.director ...

With 4.31 this stopped working. When calling the symlink Eclipse hangs. There is a pop up saying that the launcher is unable to locate the companion shared library.

Calling the binary directly still works:

Eclipse.app/Contents/MacOS/eclipse -application org.eclipse.equinox.p2.director
2024-03-27 17:30:15.326 eclipse[56801:2458810] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
Mar 27, 2024 5:30:16 PM org.apache.aries.spifly.BaseActivator log
INFO: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic
17:30:17.984 [Start Level: Equinox Container: 76a1e13f-f925-4539-b7bb-a2653b89870c] DEBUG org.eclipse.jgit.internal.util.ShutdownHook -- register org.eclipse.jgit.util.FS$FileStoreAttributes$$Lambda$170/0x00000000802543f8@33958e5b with shutdown hook
...

Steps to reproduce:

  • Download any macOS Eclipse package
  • Open DMG and move app into location
  • Create symlink
  • Invoke symlink
@guw guw changed the title [macOS] Launcher in 4.31 just hangs when invoked via symlink. [macOS] Launcher in 4.31 cannot find its companion shared library when invoked via symlink Mar 31, 2024
@mdaloia
Copy link
Contributor

mdaloia commented May 14, 2024

This could be related to this change 19582c5 introduced in 4.31 that also seems to cause this other issue: #631

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

No branches or pull requests

2 participants