[PR] dylanaraps/neofetch#2411 from ACertainPersons - Fixed Kubuntu recognized as Ubuntu

Upstream PR: https://github.com/dylanaraps/neofetch/pull/2411
Thanks to @ACertainPersons

Co-authored-by: ACertainPersons <127463096+ACertainPersons@users.noreply.github.com>
This commit is contained in:
Azalea 2023-11-10 22:12:45 -05:00
commit 0f62374205

View file

@ -1369,7 +1369,7 @@ get_distro() {
if [[ $distro == "Ubuntu"* ]]; then if [[ $distro == "Ubuntu"* ]]; then
case $XDG_CONFIG_DIRS in case $XDG_CONFIG_DIRS in
*"studio"*) distro=${distro/Ubuntu/Ubuntu Studio} ;; *"studio"*) distro=${distro/Ubuntu/Ubuntu Studio} ;;
*"plasma"*) distro=${distro/Ubuntu/Kubuntu} ;; *"kde"*) distro=${distro/Ubuntu/Kubuntu} ;;
*"mate"*) distro=${distro/Ubuntu/Ubuntu MATE} ;; *"mate"*) distro=${distro/Ubuntu/Ubuntu MATE} ;;
*"xubuntu"*) distro=${distro/Ubuntu/Xubuntu} ;; *"xubuntu"*) distro=${distro/Ubuntu/Xubuntu} ;;
*"Lubuntu"*) distro=${distro/Ubuntu/Lubuntu} ;; *"Lubuntu"*) distro=${distro/Ubuntu/Lubuntu} ;;