-
Notifications
You must be signed in to change notification settings - Fork 866
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
fix: startup on Debian 10 #1370
Conversation
f1e5689
to
2ec7924
Compare
@@ -58,8 +58,8 @@ | |||
"cross-env": "^6.0.3", | |||
"delay": "^4.3.0", | |||
"dirty-chai": "^2.0.1", | |||
"electron": "^7.1.11", | |||
"electron-builder": "^22.3.2", | |||
"electron": "^7.1.14", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not update to 8.x because it does not support old school Tray icons on Linux (#1153) and i did not want to open a second can of worms in one day.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This disables sandboxing in ipfs-desktop.desktop manifest which is ised by Desktop Environments for generating menus and icons used for starting apps. Rationale can be found at: #1362 (comment) License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
2ec7924
to
87475d4
Compare
```console | ||
$ ipfs-desktop | ||
$Trace/breakpoint trap | ||
``` | ||
|
||
This is a known issue with Electron/Chrome and some hardened kernels. | ||
If you are interested in details, read [this](https://github.com/ipfs-shipyard/ipfs-desktop/issues/1362#issuecomment-596857282). | ||
|
||
The only reliable way to fix this at the moment is to start the app with additional parameter: | ||
|
||
```console | ||
$ ipfs-desktop --no-sandbox | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated troubleshooting section contains a single, clear advice now,
and is aligned with what we do in .desktop
manifest.
Merging to unblock release, we can tweak troubleshooting in README in separate PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼
This PR fixes startup on Debian 10 and any other distribution with strict / b0rked Chromium sandbox setup.
We set
executableArgs
to--no-sandbox
inelectron-builder.yml
.It will update
Exec
command inipfs-desktop.desktop
manifest that is run when menu item / icon in desktop environment is clicked.Motivation
App does not start on Debian 10 due to sandboxing FUBAR.
Details in #1362 (comment))
Note: this should be acceptable for this app.
Electron is used only for tray (ha, #1153) menu, the GUI for starting/stopping daemon. Actual IPFS node is a golang binary running in separate process.