Merge pull request #595 from bokicoder/main

Launcher: correct fix for custom launch prefix
This commit is contained in:
Lysec
2025-10-26 21:41:54 +01:00
committed by GitHub
@@ -203,15 +203,15 @@ Item {
if (Settings.data.appLauncher.sortByMostUsed)
recordUsage(app)
if (Settings.data.appLauncher.customLaunchPrefixEnabled && Settings.data.appLauncher.customLaunchPrefix) {
// Use custom launch prefix
const prefix = Settings.data.appLauncher.customLaunchPrefix.split(" ")
if (app.runInTerminal) {
const command = prefix.concat([app.id + ".desktop"])
Logger.d("ApplicationsPlugin", "Launching via custom prefix (with desktop id): " + command.join(" "))
const terminal = Settings.data.appLauncher.terminalCommand.split(" ")
const command = prefix.concat(terminal.concat(app.command))
Quickshell.execDetached(command)
} else {
const command = prefix.concat(app.command)
Logger.d("ApplicationsPlugin", "Launching via custom prefix (with command): " + command.join(" "))
Quickshell.execDetached(command)
}
} else if (Settings.data.appLauncher.useApp2Unit && app.id) {