main: add compile time option to disable desktop entry dialog

This commit is contained in:
selsta
2021-12-17 16:43:00 +01:00
parent bddb9b0050
commit 621c11925b
3 changed files with 13 additions and 1 deletions

View File

@@ -1334,7 +1334,8 @@ ApplicationWindow {
appWindow.fiatTimerStart();
}
if (persistentSettings.askDesktopShortcut && !persistentSettings.portable) {
const desktopEntryEnabled = (typeof builtWithDesktopEntry != "undefined") && builtWithDesktopEntry;
if (persistentSettings.askDesktopShortcut && !persistentSettings.portable && desktopEntryEnabled) {
persistentSettings.askDesktopShortcut = false;
if (isTails) {