From 621c11925bb272675543b5ab428cc2ac6c0416ce Mon Sep 17 00:00:00 2001 From: selsta Date: Fri, 17 Dec 2021 16:43:00 +0100 Subject: main: add compile time option to disable desktop entry dialog --- main.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.qml') diff --git a/main.qml b/main.qml index af28f2c1..9885b1bc 100644 --- a/main.qml +++ b/main.qml @@ -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) { -- cgit v1.2.3