From 4d123b6f5db4db578ad1079dc7cd176e92321483 Mon Sep 17 00:00:00 2001 From: nocode Date: Sat, 4 Jul 2026 03:05:57 +0200 Subject: [PATCH] fix(hyprland): only launch blueman-applet if bluetooth adapter exists Prevent blueman-applet from showing connection errors in virtual machines where no Bluetooth adapter is present. The applet now checks for the existence of a Bluetooth adapter in /sys/class/bluetooth before launching. This change adds a conditional check that gracefully skips the applet initialization when no hardware is available, improving user experience in VM environments. --- .../releng/airootfs/usr/local/share/fws/hyprland.conf.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/releng/airootfs/usr/local/share/fws/hyprland.conf.tmpl b/configs/releng/airootfs/usr/local/share/fws/hyprland.conf.tmpl index 3a13719..105ebc2 100644 --- a/configs/releng/airootfs/usr/local/share/fws/hyprland.conf.tmpl +++ b/configs/releng/airootfs/usr/local/share/fws/hyprland.conf.tmpl @@ -67,7 +67,9 @@ misc { exec-once = waybar exec-once = mako exec-once = nm-applet -exec-once = blueman-applet +# Applet Bluetooth : seulement si un adaptateur existe (en VM il n'y en a +# pas → blueman afficherait une erreur « Connection to BlueZ failed »). +exec-once = sh -c '[ -n "$(ls -A /sys/class/bluetooth 2>/dev/null)" ] && exec blueman-applet' exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 $mod = SUPER