From 60e80783f6c76c057e7d89866f665ecfba30e241 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sat, 2 Nov 2024 22:52:36 -0400 Subject: [PATCH] startlxqtwayland: Correctly identify Niri and Hyprland Niri is not a member of wlroots (it uses Smithay) and Hyprland is a completely independent compositor (it no longer uses wlroots). --- startlxqtwayland.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/startlxqtwayland.in b/startlxqtwayland.in index c2e14d5..ab786a2 100644 --- a/startlxqtwayland.in +++ b/startlxqtwayland.in @@ -112,6 +112,7 @@ elif [ "$COMPOSITOR" = "labwc" ]; then exec $COMPOSITOR -C $XDG_CONFIG_HOME/labwc -S lxqt-session elif [ "$COMPOSITOR" = "niri" ]; then + export XDG_CURRENT_DESKTOP="LXQt:$COMPOSITOR:smithay" if [ ! -f "$XDG_CONFIG_HOME/lxqt/wayland/lxqt-niri.kdl" ]; then cp -v "$share_dir"/lxqt/wayland/lxqt-niri.kdl "$XDG_CONFIG_HOME"/lxqt/wayland/ if echo "$valid_layouts" | grep -q "$trylayout"; then @@ -163,6 +164,7 @@ elif [ "$COMPOSITOR" = "sway" ]; then exec $COMPOSITOR -c $XDG_CONFIG_HOME/lxqt/wayland/lxqt-sway.config elif [ "$COMPOSITOR" = "Hyprland" ]; then + export XDG_CURRENT_DESKTOP="LXQt:$COMPOSITOR" if [ ! -f "$XDG_CONFIG_HOME/lxqt/wayland/lxqt-hyprland.conf" ]; then cp "$share_dir"/lxqt/wayland/lxqt-hyprland.conf "$XDG_CONFIG_HOME"/lxqt/wayland/ if echo "$valid_layouts" | grep -q "$trylayout"; then