AppImage launched from `.desktop` file results in crash/blankscreen
See original GitHub issueI confirm (by marking “x” in the [ ] below: [x]):
- This is not a troubleshooting question. Troubleshooting questions go here: http://www.mattermost.org/troubleshoot/.
- This doesn’t reproduce on web browsers (such as in Chrome). If it does, issue reports go to the Mattermost Server repository.
- I have read contributing guidelines.
Summary
The appimage when integrated with AppImageLauncher generates a .desktop file that contains --no-sandbox (this is default for appimages built by electron-builder: https://github.com/electron-userland/electron-builder/pull/4496 ) If I run the appimage directly or remove that flag from the .desktop, all is well.
Environment
- Operating System: Fedora 34
- Mattermost Desktop App version: 5.0.0rc3
- Mattermost Server version: 5.37.1
Steps to reproduce Download a new appimage, double click to make AppImageLauncher integrate it. Close initial launch (works fine first launch from the AppImageLauncher screen) Relaunch from UI shortcuts from the .desktop file Observe dead app.
Expected behavior no crash/white window
Observed behavior windows open white or crash
Possible fixes
find a way to not run this line in builder: args.push("--extraAppArgs=--no-sandbox")
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (4 by maintainers)

Top Related StackOverflow Question
@jsg2021 Just giving you an update, I’m kinda confused why
electron-builderhas this bit hardcoded in there, since it’s very very difficult to undo it if you want to. I’ve left a comment on that issue in order to see if we can make a change toelectron-builderin order to make that optional.Sounds good. Thanks!