Skip to content

Commit dbb3b6d

Browse files
committed
fix launcher
1 parent 1461852 commit dbb3b6d

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

dot_files/quickshell/modules/sidebars/SidebarLeft.qml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -416,23 +416,20 @@ PanelWindow {
416416
// Check if terminal app - handle boolean or string "true"/"false"
417417
const isTerminal = metadata.terminal === true || metadata.terminal === "true"
418418

419-
let execCmd
420419
if (isTerminal) {
421420
// Terminal apps: launch with ghostty
422-
execCmd = "ghostty -e " + desktopId
421+
appLaunchProcess.command = ["ghostty", "-e", desktopId]
423422
} else {
424423
// GUI apps: use gtk-launch with desktop_id
425-
execCmd = "gtk-launch " + desktopId
424+
appLaunchProcess.command = ["gtk-launch", desktopId]
426425
}
427-
428-
appLaunchProcess.command = ["hyprctl", "dispatch", "exec", execCmd]
429426
appLaunchProcess.running = true
430427

431428
Root.GlobalStates.sidebarLeftOpen = false
432429
searchInput.text = ""
433430
}
434431

435-
// App launcher process - uses hyprctl to inherit compositor environment
432+
// App launcher process
436433
Process {
437434
id: appLaunchProcess
438435
command: ["true"]

0 commit comments

Comments
 (0)