Skip to content

Commit

Permalink
Fix deep links on Linux .desktop files
Browse files Browse the repository at this point in the history
Fixes #5325
  • Loading branch information
pierremtb committed Feb 11, 2025
1 parent 1628560 commit bf46e4a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,9 @@ const createWindow = (pathToOpen?: string, reuse?: boolean): BrowserWindow => {
}

// Deep Link: Case of a cold start from Windows or Linux
if (
!pathToOpen &&
process.argv.length > 1 &&
process.argv[1].indexOf(ZOO_STUDIO_PROTOCOL + '://') > -1
) {
pathToOpen = process.argv[1]
const zooProtocolArg = process.argv.find(a => a.startsWith(ZOO_STUDIO_PROTOCOL + '://'))
if (!pathToOpen && zooProtocolArg) {
pathToOpen = zooProtocolArg
console.log('Retrieved deep link from argv', pathToOpen)
}

Expand Down

0 comments on commit bf46e4a

Please sign in to comment.