Skip to content

Commit

Permalink
We already call the setAsDefaultProtocolClient method from electron w…
Browse files Browse the repository at this point in the history
…hich should handle this
  • Loading branch information
islathehut committed Oct 6, 2024
1 parent f94efb0 commit 6b0cea5
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions packages/desktop/src/main/invitation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,15 @@ export const updateDesktopFile = (isDev: boolean) => {
logger.error(`Can't update .desktop file`, e)
}

try {
const scheme = 'x-scheme-handler/quiet'
logger.info(execSync('xdg-settings --list').toString())
logger.info(execSync('xdg-settings get default-url-scheme-handler').toString())
logger.info(execSync(`xdg-mime query default ${scheme}`))
logger.info(execSync(`xdg-mime default ${desktopName} ${scheme}`))
// execSync('xdg-settings set default-url-scheme-handler quiet quiet.desktop')
} catch (e) {
logger.error("Couldn't set default scheme handler", e)
}
// try {
// const scheme = 'x-scheme-handler/quiet'
// logger.info(execSync(`xdg-mime query default ${scheme}`).toString())
// logger.info(execSync(`xdg-mime default ${desktopName} ${scheme}`).toString())
// logger.info(execSync(`xdg-mime query default ${scheme}`).toString())
// // execSync('xdg-settings set default-url-scheme-handler quiet quiet.desktop')
// } catch (e) {
// logger.error("Couldn't set default scheme handler", e)
// }
}

export const updateExecPath = (desktopFilePath: string) => {
Expand Down

0 comments on commit 6b0cea5

Please sign in to comment.