diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-19 15:35:28 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-19 15:35:28 +0200 |
| commit | ae9636030bb46db6a42dba59ea3fcbf64e541ffe (patch) | |
| tree | 7ea062109a57dca28df3a4a9d2581ed6f8b2046e /desktop | |
| parent | 5acd9d6fa93f836be88b1c75fef81d9251646e98 (diff) | |
| download | quickshell-ae9636030bb46db6a42dba59ea3fcbf64e541ffe.tar.gz quickshell-ae9636030bb46db6a42dba59ea3fcbf64e541ffe.zip | |
feat(kdeconnect): open the KDE Connect window from the page
The drawer absorbed the indicator's device actions but not the settings
window, so there was no path to the full KDE Connect app. Add an Open app
button beside Refresh, launching kdeconnect-app through execDetached so the
window outlives a quickshell reload.
Diffstat (limited to 'desktop')
| -rw-r--r-- | desktop/modules/kdeconnect/KdeConnectModule.qml | 3 | ||||
| -rw-r--r-- | desktop/modules/kdeconnect/KdeConnectPage.qml | 5 | ||||
| -rw-r--r-- | desktop/modules/kdeconnect/README.md | 6 |
3 files changed, 12 insertions, 2 deletions
diff --git a/desktop/modules/kdeconnect/KdeConnectModule.qml b/desktop/modules/kdeconnect/KdeConnectModule.qml index fa4fb52..17368b2 100644 --- a/desktop/modules/kdeconnect/KdeConnectModule.qml +++ b/desktop/modules/kdeconnect/KdeConnectModule.qml @@ -170,6 +170,9 @@ Module { `xdg-open "$(kdeconnect-cli --get-mount-point -d ${JSON.stringify(id)})"`]); } + // The full KDE Connect window, detached so it outlives a quickshell reload. + function openApp() { Quickshell.execDetached(["kdeconnect-app"]); } + // --- share --- // The dialog is held on the module, not the page, so closing the drawer diff --git a/desktop/modules/kdeconnect/KdeConnectPage.qml b/desktop/modules/kdeconnect/KdeConnectPage.qml index d570125..c29bfe8 100644 --- a/desktop/modules/kdeconnect/KdeConnectPage.qml +++ b/desktop/modules/kdeconnect/KdeConnectPage.qml @@ -27,6 +27,11 @@ Column { text: "Refresh" onClicked: page.kc.discover() } + + Button { + text: "Open app" + onClicked: page.kc.openApp() + } } Text { diff --git a/desktop/modules/kdeconnect/README.md b/desktop/modules/kdeconnect/README.md index b92cb2d..cb0aaa5 100644 --- a/desktop/modules/kdeconnect/README.md +++ b/desktop/modules/kdeconnect/README.md @@ -8,8 +8,10 @@ The tile names the reachable device and its battery when the battery plugin reports one, a count when several are reachable, `Offline` when paired devices exist but none is reachable, and `No devices` otherwise. -The page lists paired devices, then any discovered unpaired ones, with a -refresh control at the top and an incoming-pairing banner. A reachable row +The page lists paired devices, then any discovered unpaired ones, with +refresh and open-the-KDE-Connect-window controls at the top and an +incoming-pairing banner. Open app launches `kdeconnect-app` detached, so it +outlives a quickshell reload. A reachable row offers Ring, Clipboard, Share and Mount; a paired row offers Unpair; an unpaired reachable one offers Pair. |
