Skip to content

Commit

Permalink
moore tidy/fix
Browse files Browse the repository at this point in the history
  • Loading branch information
teknsl committed Jan 4, 2025
1 parent c108f71 commit 042a747
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/util/IncognitoBrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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())
{
Expand Down Expand Up @@ -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});
}
Expand Down

0 comments on commit 042a747

Please # to comment.