Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Fix cannot set "default-url-scheme-handler" setting on Linux #272

Merged
merged 1 commit into from
Jan 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,12 @@ if (!gotTheLock) {
};

// Register protocol
app.setAsDefaultProtocolClient('translatium');
// needed for PopClip support
// incompatible with snap
// see https://forum.snapcraft.io/t/dbus-error/4969/9
if (process.platform === 'darwin') {
app.setAsDefaultProtocolClient('translatium');
}

// Load listeners
loadListeners();
Expand Down