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.
This commit is contained in:
2026-07-04 03:05:57 +02:00
parent a09278b63f
commit 4d123b6f5d
@@ -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