add support for UKUI (#7348)

This commit is contained in:
Yuri Tukhachevsky
2025-05-26 13:48:31 +08:00
committed by GitHub
parent 4875b37f70
commit 608a6c387a

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