Add KDE wrapper scripts with proper QML paths for bluetooth and network

This commit is contained in:
Celes Renata
2025-11-30 22:55:45 -08:00
parent 21eacdaefd
commit 91efc576a9
3 changed files with 16 additions and 0 deletions
+10
View File
@@ -52,6 +52,16 @@ let
kdePackages.plasma-nm # KDE network manager kdePackages.plasma-nm # KDE network manager
kdePackages.kconfig # KDE config module kdePackages.kconfig # KDE config module
kdePackages.kirigami # KDE UI framework kdePackages.kirigami # KDE UI framework
# Wrapper scripts for KDE tools with proper QML paths
(pkgs.writeShellScriptBin "kcmshell6-bluetooth" ''
export QML2_IMPORT_PATH="${pkgs.kdePackages.bluez-qt}/lib/qt-6/qml:${pkgs.kdePackages.bluedevil}/lib/qt-6/qml:${pkgs.kdePackages.plasma-nm}/lib/qt-6/qml:${pkgs.kdePackages.kconfig}/lib/qt-6/qml:${pkgs.kdePackages.kirigami}/lib/qt-6/qml"
exec ${pkgs.kdePackages.kcmutils}/bin/kcmshell6 kcm_bluetooth
'')
(pkgs.writeShellScriptBin "kcmshell6-network" ''
export QML2_IMPORT_PATH="${pkgs.kdePackages.plasma-nm}/lib/qt-6/qml:${pkgs.kdePackages.kconfig}/lib/qt-6/qml:${pkgs.kdePackages.kirigami}/lib/qt-6/qml"
exec ${pkgs.kdePackages.kcmutils}/bin/kcmshell6 kcm_networkmanagement
'')
]; ];
# illogical-impulse-hyprland PKGBUILD # illogical-impulse-hyprland PKGBUILD
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
export QML2_IMPORT_PATH="/nix/store/dpcsk75hmiyiqjx5xqrrcd4vqz04g0sx-bluez-qt-6.20.0/lib/qt-6/qml:/nix/store/4lqcd9h2zjqbw9fslaz1013hsxsqpyq5-bluedevil-6.5.3/lib/qt-6/qml:/nix/store/glsmwvihb0zxx1fp7ajdrznj2md9g25a-plasma-nm-6.5.3/lib/qt-6/qml:/nix/store/shlx6p5760n95svcili68pmj8dfzrgfm-kconfig-6.20.0/lib/qt-6/qml:/nix/store/227q5lxrfk76rxmvv0d2hfg38in2yvky-kirigami-wrapped-6.20.0/lib/qt-6/qml"
exec kcmshell6 kcm_bluetooth
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
export QML2_IMPORT_PATH="/nix/store/glsmwvihb0zxx1fp7ajdrznj2md9g25a-plasma-nm-6.5.3/lib/qt-6/qml:/nix/store/shlx6p5760n95svcili68pmj8dfzrgfm-kconfig-6.20.0/lib/qt-6/qml:/nix/store/227q5lxrfk76rxmvv0d2hfg38in2yvky-kirigami-wrapped-6.20.0/lib/qt-6/qml"
exec kcmshell6 kcm_networkmanagement