Unverified Commit 47d8dbce authored by Michael Straube's avatar Michael Straube Committed by GitHub

Detect Ubuntu flavors (#1507)

parent a4bf7210
...@@ -1087,6 +1087,18 @@ get_distro() { ...@@ -1087,6 +1087,18 @@ get_distro() {
distro=$(trim_quotes "$distro") distro=$(trim_quotes "$distro")
distro=${distro/NAME=} distro=${distro/NAME=}
# Get Ubuntu flavor.
if [[ $distro == "Ubuntu"* ]]; then
case $XDG_CONFIG_DIRS in
*"plasma"*) distro=${distro/Ubuntu/Kubuntu} ;;
*"mate"*) distro=${distro/Ubuntu/Ubuntu MATE} ;;
*"xubuntu"*) distro=${distro/Ubuntu/Xubuntu} ;;
*"Lubuntu"*) distro=${distro/Ubuntu/Lubuntu} ;;
*"budgie"*) distro=${distro/Ubuntu/Ubuntu Budgie} ;;
*"studio"*) distro=${distro/Ubuntu/Ubuntu Studio} ;;
esac
fi
;; ;;
"Mac OS X"|"macOS") "Mac OS X"|"macOS")
...@@ -9890,7 +9902,7 @@ ${c1} ▀█████████ ███████${c2}███▀ ...@@ -9890,7 +9902,7 @@ ${c1} ▀█████████ ███████${c2}███▀
EOF EOF
;; ;;
"Ubuntu-Budgie"*) "Ubuntu Budgie"* | "Ubuntu-Budgie"*)
set_colors 4 7 1 set_colors 4 7 1
read -rd '' ascii_data <<'EOF' read -rd '' ascii_data <<'EOF'
${c2} ./oydmMMMMMMmdyo/. ${c2} ./oydmMMMMMMmdyo/.
...@@ -9938,7 +9950,7 @@ ${c4} `soooo. .oooo` ...@@ -9938,7 +9950,7 @@ ${c4} `soooo. .oooo`
EOF EOF
;; ;;
"Ubuntu-MATE"*) "Ubuntu MATE"* | "Ubuntu-MATE"*)
set_colors 2 7 set_colors 2 7
read -rd '' ascii_data <<'EOF' read -rd '' ascii_data <<'EOF'
${c1} `:+shmNNMMNNmhs+:` ${c1} `:+shmNNMMNNmhs+:`
...@@ -9988,7 +10000,7 @@ ${c3} `oo++. ...@@ -9988,7 +10000,7 @@ ${c3} `oo++.
EOF EOF
;; ;;
"Ubuntu-Studio") "Ubuntu Studio"* | "Ubuntu-Studio")
set_colors 6 7 set_colors 6 7
read -rd '' ascii_data <<'EOF' read -rd '' ascii_data <<'EOF'
${c1} ..-::::::-.` ${c1} ..-::::::-.`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment