Skip to content

Commit

Permalink
Add log to invitation
Browse files Browse the repository at this point in the history
  • Loading branch information
islathehut committed Nov 7, 2024
1 parent ad58cae commit accab6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/desktop/src/main/invitation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const processInvitationCode = (mainWindow: BrowserWindow, code: string |

export const updateDesktopFile = (isDev: boolean) => {
if (isDev || process.platform !== 'linux') return
logger.info(`Updating desktop file and setting default scheme handler`)

const desktopName = 'quiet.desktop'
const appDesktopFile = path.join(os.homedir(), `.local/share/applications/${desktopName}`)
Expand All @@ -38,6 +39,7 @@ export const updateDesktopFile = (isDev: boolean) => {
try {
const scheme = 'x-scheme-handler/quiet'
logger.info(execSync(`xdg-mime default ${desktopName} ${scheme}`).toString())
logger.info(execSync(`xdg-mime query default ${scheme}`).toString())
} catch (e) {
logger.error("Couldn't set default scheme handler", e)
}
Expand Down

0 comments on commit accab6f

Please sign in to comment.