add support for UKUI

This commit is contained in:
yuritukhachevsky 2025-05-26 10:43:56 +08:00
parent 4875b37f70
commit d433c078af

View file

@ -95,6 +95,11 @@ detect_desktop_environment() {
return
fi
if [[ "$XDG_CURRENT_DESKTOP" == *"UKUI"* ]] || [[ "$XDG_SESSION_DESKTOP" == *"ukui"* ]]; then
echo "gnome"
return
fi
local KDE_ENVIRONMENTS=("KDE" "plasma")
for ENV in "${KDE_ENVIRONMENTS[@]}"; do
if [ "$XDG_CURRENT_DESKTOP" == "$ENV" ] || [ "$XDG_SESSION_DESKTOP" == "$ENV" ]; then