From 6b0cea577fbcbf105a95d30748f8c3fabcf6d4a5 Mon Sep 17 00:00:00 2001 From: Isla Koenigsknecht Date: Sat, 5 Oct 2024 22:30:37 -0400 Subject: [PATCH] We already call the setAsDefaultProtocolClient method from electron which should handle this --- packages/desktop/src/main/invitation.ts | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/packages/desktop/src/main/invitation.ts b/packages/desktop/src/main/invitation.ts index 3b1720adc8..78140c95e5 100644 --- a/packages/desktop/src/main/invitation.ts +++ b/packages/desktop/src/main/invitation.ts @@ -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) => {