mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
fine tunings
This commit is contained in:
parent
559b049add
commit
476f3cdad3
4
inxi
4
inxi
|
@ -2557,14 +2557,16 @@ detect_desktop_environment()
|
|||
version=" $version"
|
||||
fi
|
||||
# this is a hack, and has to be changed with every toolkit version change
|
||||
toolkit=$( pkg-config --modversion gtk+-3.0 2>/dev/null )
|
||||
if [[ -z $toolkit ]];then
|
||||
toolkit=$( pkg-config --modversion gtk+-2.0 2>/dev/null )
|
||||
fi
|
||||
if [[ -n $toolkit ]];then
|
||||
version="$version (Gtk: $toolkit)"
|
||||
fi
|
||||
desktop_environment="Gnome${version}"
|
||||
# assume 5 will id the same, why not, no need to update in future
|
||||
elif [[ $KDE_SESSION_VERSION == '5' ]]; then
|
||||
desktop_environment='KDE 5'
|
||||
version_data=$( kded5 --version 2>/dev/null )
|
||||
version=$( grep -si '^KDE Development Platform:' <<< "$version_data" | gawk '{print $4}' )
|
||||
if [[ -z $version ]];then
|
||||
|
|
Loading…
Reference in a new issue