diff --git a/Modules/Launcher/Plugins/ApplicationsPlugin.qml b/Modules/Launcher/Plugins/ApplicationsPlugin.qml index 9fb8cba9..2e07442c 100644 --- a/Modules/Launcher/Plugins/ApplicationsPlugin.qml +++ b/Modules/Launcher/Plugins/ApplicationsPlugin.qml @@ -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) {