Krolyxon
Commit ab788ce

Branches

Refs →

auroraab788ce

aurora: open encrypted drives after mounting from the panel

Author
krolyxon
Date
2026-10-25 16:44 +0530
Parent
6b9cdf8
Commit
ab788ce95ea1fee07e8653ad4da32db4efd6c316

+2 −1

1 file changed

  1. M .config/quickshell/aurora/Devices.qml +2 −1
M .config/quickshell/aurora/Devices.qml View
@@ -26,9 +26,10 @@ Singleton {
2626 function mount(key, thenOpen) {
2727 run(["mounter", key], "", () => { if (thenOpen) openLater.key = key })
2828 }
29+ // a LUKS key (/dev/sda2) also matches its unlocked mapper, whose row replaces it after mounting
2930 function open(key) {
3031 for (var i = 0; i < drives.length; i++)
31− if (drives[i].key === key && drives[i].mount !== "") { xdgOpen(drives[i].mount); return true }
32+ if ((drives[i].key === key || drives[i].luksParent === key) && drives[i].mount !== "") { xdgOpen(drives[i].mount); return true }
3233 for (i = 0; i < phones.length; i++)
3334 if (phones[i].key === key && phones[i].mounted) { xdgOpen(phones[i].path); return true }
3435 return false