mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-05-23 06:47:05 +00:00
fix
This commit is contained in:
@@ -207,17 +207,10 @@ Item {
|
||||
const prefix = Settings.data.appLauncher.customLaunchPrefix.split(" ")
|
||||
|
||||
if (app.runInTerminal) {
|
||||
// For terminal apps, use the app command directly
|
||||
const command = prefix.concat(app.command)
|
||||
Quickshell.execDetached(command)
|
||||
} else if (app.id) {
|
||||
// For GUI apps, try to use the app name/executable name instead of desktop file
|
||||
// This works better with commands like "niri msg action spawn --"
|
||||
const appName = app.executableName || app.name.toLowerCase().replace(/\s+/g, '-')
|
||||
const command = prefix.concat([appName])
|
||||
const terminal = Settings.data.appLauncher.terminalCommand.split(" ")
|
||||
const command = prefix.concat(terminal.concat(app.command))
|
||||
Quickshell.execDetached(command)
|
||||
} else {
|
||||
// Fallback to direct command execution
|
||||
const command = prefix.concat(app.command)
|
||||
Quickshell.execDetached(command)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user