Skip to content

Commit

Permalink
[MM-61864] Fix issue where the app will not restore when opened again…
Browse files Browse the repository at this point in the history
… from cold, fix issue where deep linking from cold didn't work on Linux (#3214)

* [MM-61864] Fix issue where the app will not restore when opened again from cold, fix issue where deep linking from cold didn't work on Linux

* Update src/main/app/initialize.ts

Co-authored-by: Maria A Nunez <[email protected]>

---------

Co-authored-by: Maria A Nunez <[email protected]>
  • Loading branch information
devinbinnie and marianunez authored Nov 19, 2024
1 parent bbc2dc5 commit fad05fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/main/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export function handleAppSecondInstance(event: Event, argv: string[]) {
const deeplinkingURL = getDeeplinkingURL(argv);
if (deeplinkingURL) {
openDeepLink(deeplinkingURL);
} else if (MainWindow.get()) {
MainWindow.show();
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/app/initialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ async function initializeAfterAppReady() {

let deeplinkingURL;

// Protocol handler for win32
if (process.platform === 'win32') {
// Protocol handler for win32 and linux
if (process.platform !== 'darwin') {
const args = process.argv.slice(1);
if (Array.isArray(args) && args.length > 0) {
deeplinkingURL = getDeeplinkingURL(args);
Expand Down

0 comments on commit fad05fd

Please sign in to comment.