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

fix: startup on Debian 10 #1370

Merged
merged 1 commit into from
Mar 10, 2020
Merged

fix: startup on Debian 10 #1370

merged 1 commit into from
Mar 10, 2020

Conversation

lidel
Copy link
Member

@lidel lidel commented Mar 10, 2020

Closes #1362

This PR fixes startup on Debian 10 and any other distribution with strict / b0rked Chromium sandbox setup.

We set executableArgs to --no-sandbox in electron-builder.yml.
It will update Exec command in ipfs-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.

@lidel lidel force-pushed the fix/sandbox-on-debian-10 branch from f1e5689 to 2ec7924 Compare March 10, 2020 02:03
@lidel lidel mentioned this pull request Mar 10, 2020
22 tasks
@@ -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",
Copy link
Member Author

@lidel lidel Mar 10, 2020

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen Shot 2020-03-10 at 10 18 45 AM

@lidel lidel requested a review from autonome March 10, 2020 02:12
@lidel lidel marked this pull request as ready for review March 10, 2020 02:12
README.md Outdated Show resolved Hide resolved
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 <[email protected]>
@lidel lidel force-pushed the fix/sandbox-on-debian-10 branch from 2ec7924 to 87475d4 Compare March 10, 2020 21:15
@lidel lidel requested a review from autonome March 10, 2020 21:20
Comment on lines +180 to +192
```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
```
Copy link
Member Author

@lidel lidel Mar 10, 2020

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.

@lidel
Copy link
Member Author

lidel commented Mar 10, 2020

Merging to unblock release, we can tweak troubleshooting in README in separate PR

@lidel lidel changed the title fix: chrome-sandbox and Debian 10 fix: startup on Debian 10 Mar 10, 2020
@lidel lidel merged commit 7b3c49b into master Mar 10, 2020
@lidel lidel deleted the fix/sandbox-on-debian-10 branch March 10, 2020 23:10
Copy link
Contributor

@autonome autonome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

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

Successfully merging this pull request may close these issues.

ipfs-desktop > Trace/breakpoint trap
2 participants