Skip to content

Commit

Permalink
Stop enforcing app location for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphrag committed Dec 1, 2024
1 parent 1aa8e00 commit a21003c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/enforce-macos-app-location.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,20 @@ export default function enforceMacOSAppLocation(): void {
type: 'error',
message: 'Move to Applications folder?',
detail:
'Ferdium must live in the Applications folder to be able to run correctly.',
'Ferdium should live in the Applications folder to be able to run correctly.',
buttons: ['Move to Applications folder', 'Quit Ferdium'],
defaultId: 0,
cancelId: 1,
});

if (clickedButtonIndex === 1) {
api.app.quit();
// api.app.quit();
api.dialog.showMessageBoxSync({
type: 'warning',
message:
'Running Ferdium outside of the Application folder should be avoided, and is not supported. Do this at your own risks.',
buttons: ['I understand'],
});
return;
}

Expand Down

0 comments on commit a21003c

Please sign in to comment.