question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

app.setAsDefaultProtocolClient doesn’t work on Linux .AppImage

See original GitHub issue
  • electon-builder: 20.44.4 and tried 21.0.13
  • electon-updater: 4.0.14 and tried 4.1.2
  • Target: linux (.AppImage, Ubuntu)

app.setAsDefaultProtocolClient works for macOS and Windows, but not for Linux, at least when using .AppImage, which is the only one I use.

The custom protocol / schema is never registered and app.isDefaultProtocolClient will always return false.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:28 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
roaringUnicorncommented, Sep 16, 2019

The bug is still present in electron@6.0.9 and electron-builder@21.2.0

3reactions
roaringUnicorncommented, Jul 17, 2019

I ran into the same problem. I had to workaround using : childProcess.exec('xdg-mime default myApp.desktop x-scheme-handler/myapp')

Read more comments on GitHub >

github_iconTop Results From Across the Web

Override default protocol client for Electron App in Linux
app.setAsDefaultProtocolClient('magnet', process.execPath, []). It always returns false when I run the app as the regular user or even as ...
Read more >
Deep Links | Electron
app.setAsDefaultProtocolClient('electron-fiddle', process. ... On macOS and Linux, this feature will only work when your app is packaged. It will not work ...
Read more >
Building & distributing Linux desktop apps using Electron
Linux App Summit ... Do electron apps work on ARM platform? ... Are you aware of AppImage Launcher (One-click integration for AppImage ) ......
Read more >
Obsidian app icon doesn't show up in taskbar on Linux
Environment. Operating system: Linux, Ubuntu; Using AppImage package; Obsidian 1.0.3. NOTE: It's not installation problem. Another app ...
Read more >
Common Configuration - electron-builder
linux LinuxConfiguration - Options related to how build Linux targets. ... need to explicitly set asarUnpack - please file an issue if this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found