Skip to content

Commit

Permalink
fix: startup on Debian 10
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lidel committed Mar 10, 2020
1 parent b04f9dd commit 87475d4
Show file tree
Hide file tree
Showing 4 changed files with 223 additions and 256 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ IPFS Desktop allows you to run your IPFS Node on your machine without having to
- [Contribute](#contribute)
- [Translations](#translations)
- [FAQ](#faq)
- [Troubleshooting](#troubleshooting)

## Features

Expand Down Expand Up @@ -164,6 +165,33 @@ Since we're using [ipfsd-ctl](https://github.com/ipfs/js-ipfsd-ctl), we have our

By default we use the flags `--migrate=true --routing=dhtclient ----enable-gc=true` when running the IPFS daemon. They can be changed via the configuration file, which can be easily accessed as mentioned above.

## Troubleshooting

### Does not start on Linux (Debian 10)

Some Linux users may see an error like this:

> The SUID sandbox helper binary was found, but is not configured correctly.
Rather than run without sandboxing I'm aborting now. You need to make sure that
chrome-sandbox is owned by root and has mode 4755.

or a very short one, when starting in a terminal:

```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
```


## License

[MIT Protocol Labs, Inc.](./LICENSE)
2 changes: 2 additions & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ nsis:
linux:
artifactName: ${name}-${version}-${os}-${arch}.${ext}
executableName: ipfs-desktop
executableArgs:
- --no-sandbox
icon: ipfs-desktop
category: Network;FileTransfer;P2P
synopsis: A desktop client for IPFS
Expand Down
Loading

0 comments on commit 87475d4

Please sign in to comment.