forked from Shinonome/dots-hyprland
dock: use quickshell-native way to open apps
This commit is contained in:
@@ -116,9 +116,11 @@ Scope { // Scope
|
|||||||
model: ConfigOptions?.dock.pinnedApps ?? []
|
model: ConfigOptions?.dock.pinnedApps ?? []
|
||||||
|
|
||||||
DockButton {
|
DockButton {
|
||||||
|
id: pinnedAppButton
|
||||||
required property string modelData
|
required property string modelData
|
||||||
|
property DesktopEntry entry: DesktopEntries.byId(modelData)
|
||||||
onClicked: {
|
onClicked: {
|
||||||
Hyprland.dispatch(`exec gio launch ${modelData}`)
|
pinnedAppButton?.entry.execute();
|
||||||
}
|
}
|
||||||
contentItem: IconImage {
|
contentItem: IconImage {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|||||||
Reference in New Issue
Block a user