fix launcher for non-uwsm
This commit is contained in:
@@ -9,17 +9,20 @@ import qs.Paths
|
||||
Searcher {
|
||||
id: root
|
||||
|
||||
readonly property list<string> command: Config.launcher.uwsm ? ["app2unit", "--"] : []
|
||||
|
||||
function launch(entry: DesktopEntry): void {
|
||||
appDb.incrementFrequency(entry.id);
|
||||
console.log(root.command);
|
||||
|
||||
if (entry.runInTerminal)
|
||||
Quickshell.execDetached({
|
||||
command: ["app2unit", "--", ...Config.general.apps.terminal, `${Quickshell.shellDir}/assets/wrap_term_launch.sh`, ...entry.command],
|
||||
command: [...root.command, ...Config.general.apps.terminal, `${Quickshell.shellDir}/assets/wrap_term_launch.sh`, ...entry.command],
|
||||
workingDirectory: entry.workingDirectory
|
||||
});
|
||||
else
|
||||
Quickshell.execDetached({
|
||||
command: ["app2unit", "--", ...entry.command],
|
||||
command: [...root.command, ...entry.command],
|
||||
workingDirectory: entry.workingDirectory
|
||||
});
|
||||
}
|
||||
|
||||
@@ -10,8 +10,8 @@ SettingsPage {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
name: "Max apps shown"
|
||||
min: 1
|
||||
name: "Max apps shown"
|
||||
object: Config.launcher
|
||||
setting: "maxAppsShown"
|
||||
}
|
||||
@@ -20,8 +20,8 @@ SettingsPage {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
name: "Max wallpapers shown"
|
||||
min: 1
|
||||
name: "Max wallpapers shown"
|
||||
object: Config.launcher
|
||||
setting: "maxWallpapers"
|
||||
}
|
||||
@@ -43,6 +43,15 @@ SettingsPage {
|
||||
object: Config.launcher
|
||||
setting: "specialPrefix"
|
||||
}
|
||||
|
||||
Separator {
|
||||
}
|
||||
|
||||
SettingSwitch {
|
||||
name: "Use UWSM launch command"
|
||||
object: Config.launcher
|
||||
setting: "uwsm"
|
||||
}
|
||||
}
|
||||
|
||||
SettingsSection {
|
||||
@@ -103,8 +112,8 @@ SettingsPage {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
name: "Item width"
|
||||
min: 1
|
||||
name: "Item width"
|
||||
object: Config.launcher.sizes
|
||||
setting: "itemWidth"
|
||||
}
|
||||
@@ -113,8 +122,8 @@ SettingsPage {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
name: "Item height"
|
||||
min: 1
|
||||
name: "Item height"
|
||||
object: Config.launcher.sizes
|
||||
setting: "itemHeight"
|
||||
}
|
||||
@@ -123,8 +132,8 @@ SettingsPage {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
name: "Wallpaper width"
|
||||
min: 1
|
||||
name: "Wallpaper width"
|
||||
object: Config.launcher.sizes
|
||||
setting: "wallpaperWidth"
|
||||
}
|
||||
@@ -133,8 +142,8 @@ SettingsPage {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
name: "Wallpaper height"
|
||||
min: 1
|
||||
name: "Wallpaper height"
|
||||
object: Config.launcher.sizes
|
||||
setting: "wallpaperHeight"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user