The packaged OSX or Ubuntu app doesn't work correctly if it was started from another app
- Dominant language
- TypeScript
- Stars
- 7.1k
- Forks
- 641
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 30
Description
### Pre-flight checklist
- [X] I have read the [contribution documentation](https://github.com/electron/forge/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [code of conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project uses.
- [X] I have searched the issue tracker for a bug that matches the one I want to file, without success.
### Electron Forge version
7.4.0
### Electron version
30.0.8
### Operating system
OSX 14.4 / Ubuntu 22.04.4
### Last known working Electron Forge version
_No response_
### Expected behavior
The app should run normally
### Actual behavior
On OSX: it produces an error
`Library not loaded: @rpath/Electron Framework.framework/Electron Framework`
On Linux: it starts as a background app
### Steps to reproduce
- I used electron forge to compile and produced on OSX and Ubuntu app that runs
- Upload to Steam or any other platform such Epic or itch.io app that can run your app from inside of it
- Install and run your app from that platform
### Additional information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.