Skip to content

Commit

Permalink
Do not open .desktop files; instead, launch them
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd committed Aug 1, 2023
1 parent 961943c commit 09a46cc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/launcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,13 @@ int Launcher::open(QStringList args)
}
}

// Do not open .desktop files; instead, launch them
if (mimeType == "application/x-desktop") {
QStringList argsForLaunch = { firstArg };
argsForLaunch.append(args);
return launch(argsForLaunch);
}

// Check whether there is a symlink in ~/.local/share/launch/MIME/<...>/Default
// pointing to an application that exists on disk; if yes, then use that
if (!showChooserRequested) {
Expand Down

0 comments on commit 09a46cc

Please sign in to comment.