From 042a7478a3b92733a372d4f5171726380409a858 Mon Sep 17 00:00:00 2001 From: teknsl Date: Sat, 4 Jan 2025 03:51:25 +0100 Subject: [PATCH] moore tidy/fix --- src/util/IncognitoBrowser.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/util/IncognitoBrowser.cpp b/src/util/IncognitoBrowser.cpp index b5aa4b00349..31a2c817299 100644 --- a/src/util/IncognitoBrowser.cpp +++ b/src/util/IncognitoBrowser.cpp @@ -45,7 +45,6 @@ QString getExecutable() if (desktopFile.has_value()) { auto entries = desktopFile->getEntries("Desktop Entry"); - auto exec = entries.find("Exec"); if (exec != entries.end()) return parseDesktopExecProgram(exec->second.trimmed()); @@ -77,7 +76,7 @@ QString getPrivateArg(const QString &browserPath) }}; // may return null string if path is '/' - QString exeFilename = QFileInfo(browserPath).fileName(); + QString exeFilename = QFileInfo(browserPath).fileName().toLower(); if (!exeFilename.isNull()) { @@ -115,7 +114,7 @@ bool supportsIncognitoLinks() bool openLinkIncognito(const QString &link) { QString exe = getExecutable(); - QString arg = getPrivateArg(browserExe); + QString arg = getPrivateArg(exe); return QProcess::startDetached(exe, {arg, link}); }