mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-01 09:45:10 +00:00
## Issue Closes 4729: LBRY desktop auto-sets itself as default application for opening html files in Linux file managers like nemo after logout and login or a cold/warm boot - https://gitlab.freedesktop.org/xdg/xdg-utils/-/issues/180 - It appears that there is a piece of code in xdg that defaults the type to 'text/html' if the parameter is empty. I'm not sure if that's entirely xdg's fault, or it's the way Electron's `setAsDefaultProtocolClient` uses it. ## Changes In Linux Mint at least, it seems like the `protocols` entry in `electron-builder.json` is enough to associate the LBRY protocol to this app. The extra `setAsDefaultProtocolClient` seems unnecessary. My test method: With `setAsDefaultProtocolClient` removed for Linux, - <a href="lbry://xxx"> still opens the app. - <a href="lbry://xxx"> does not open the app if the `protocols` entry is removed from `electron-build.json` (confirming that it's doing it's job). |
||
|---|---|---|
| .. | ||
| menu | ||
| createTray.js | ||
| createWindow.js | ||
| Daemon.js | ||
| devServer.js | ||
| index.js | ||
| installDevtools.js | ||
| LbryFirstInstance.js | ||
| sandboxTest.js | ||
| startSandbox.js | ||
| unpackByOutpoint.js | ||