From 5ad8ad3b4c94d50c5020beb7552282d3376ee2d0 Mon Sep 17 00:00:00 2001 From: Don Williams Date: Wed, 22 Jul 2026 14:20:00 -0400 Subject: Fixed hyprland-gui module not found Signed-off-by: Don Williams On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/lua/user_overrides.lua modified: scripts/lib_copy.sh modified: scripts/lib_detect.sh --- config/hypr/lua/user_overrides.lua | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) (limited to 'config/hypr/lua/user_overrides.lua') diff --git a/config/hypr/lua/user_overrides.lua b/config/hypr/lua/user_overrides.lua index 149962d5..8117012a 100644 --- a/config/hypr/lua/user_overrides.lua +++ b/config/hypr/lua/user_overrides.lua @@ -21,24 +21,33 @@ local function has_kvantum_qml_module() pipe:close() return output:match("%S") ~= nil end +local function has_hyprland_qml_style_module() + local cmd = "find /usr/lib /usr/lib64 /usr/share -type d -path '*/qml/*/org/hyprland/style' -print -quit 2>/dev/null" + local pipe = io.popen(cmd, "r") + if not pipe then + return false + end + local output = pipe:read("*a") or "" + pipe:close() + return output:match("%S") ~= nil +end local function apply_qt_style_fallbacks() if not hl or not hl.env then return end - if has_kvantum_qml_module() then - return - end - - local style_override = (os.getenv("QT_STYLE_OVERRIDE") or ""):lower() - if style_override == "kvantum" or style_override == "kvantum-dark" then - hl.env("QT_STYLE_OVERRIDE", "Fusion") + if not has_kvantum_qml_module() then + local style_override = (os.getenv("QT_STYLE_OVERRIDE") or ""):lower() + if style_override == "kvantum" or style_override == "kvantum-dark" then + hl.env("QT_STYLE_OVERRIDE", "Fusion") + end end - - local quick_controls = (os.getenv("QT_QUICK_CONTROLS_STYLE") or ""):lower() - if quick_controls == "kvantum" then - hl.env("QT_QUICK_CONTROLS_STYLE", "Basic") + if not has_hyprland_qml_style_module() then + local quick_controls = (os.getenv("QT_QUICK_CONTROLS_STYLE") or ""):lower() + if quick_controls == "" or quick_controls == "org.hyprland.style" then + hl.env("QT_QUICK_CONTROLS_STYLE", "Basic") + end end end -- cgit v1.2.3