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:
- Created 4 years ago
- Reactions:8
- Comments:28 (10 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The bug is still present in electron@6.0.9 and electron-builder@21.2.0
I ran into the same problem. I had to workaround using :
childProcess.exec('xdg-mime default myApp.desktop x-scheme-handler/myapp')