New version, new tarball. This fixes a bug with the last fix for KDE Plasma version. It was

showing Frameworks version, which is apparently NOT the same as the plasma version.

Also added debugger kde versioning to make this stuff less of an ordeal for data collection.
This commit is contained in:
inxi-svn 2015-07-06 22:53:44 +00:00
parent 993f50e942
commit 44535d0b0c
2 changed files with 44 additions and 10 deletions

38
inxi
View file

@ -1,8 +1,8 @@
#!/usr/bin/env bash
########################################################################
#### Script Name: inxi
#### Version: 2.2.25
#### Date: 2015-06-15
#### Version: 2.2.26
#### Date: 2015-07-06
#### Patch Number: 00
########################################################################
#### SPECIAL THANKS
@ -1950,13 +1950,23 @@ debug_data_collector()
echo $KDE_FULL_SESSION &> $debug_data_dir/kde3-full-session.txt
echo $KDE_SESSION_VERSION &> $debug_data_dir/kde-gte-4-session-version.txt
if type -p kf5-config &>/dev/null; then
kf5-config --version &> $debug_data_dir/kf5-config-version-data.txt
kf5-config --version &> $debug_data_dir/kde-kf5-config-version-data.txt
elif type -p kf6-config &>/dev/null; then
kf6-config --version &> $debug_data_dir/kf6-config-version-data.txt
kf6-config --version &> $debug_data_dir/kde-kf6-config-version-data.txt
elif type -p kf$KDE_SESSION_VERSION-config &>/dev/null; then
kf$KDE_SESSION_VERSION-config --version &> $debug_data_dir/kf$KDE_SESSION_VERSION-KSV-config-version-data.txt
kf$KDE_SESSION_VERSION-config --version &> $debug_data_dir/kde-kf$KDE_SESSION_VERSION-KSV-config-version-data.txt
else
touch $debug_data_dir/kf-config-absent
touch $debug_data_dir/kde-kf-config-absent
fi
if type -p plasmashell &>/dev/null; then
plasmashell --version &> $debug_data_dir/kde-plasmashell-version-data.txt
else
touch $debug_data_dir/kde-plasmashell-absent
fi
if type -p kwin_x11 &>/dev/null; then
kwin_x11 --version &> $debug_data_dir/kde-kwin_x11-version-data.txt
else
touch $debug_data_dir/kde-kwin_x11-absent
fi
if type -p kded4 &>/dev/null; then
kded4 --version &> $debug_data_dir/kded4-version-data.txt
@ -4520,7 +4530,7 @@ get_desktop_environment()
# set the default, this function only runs in X, if null, don't print data out
local desktop_environment='' xprop_root='' version2=''
local version='' version_data='' toolkit=''
local version='' version_data='' version2_data='' toolkit=''
# works on 4, assume 5 will id the same, why not, no need to update in future
# KDE_SESSION_VERSION is the integer version of the desktop
@ -4538,13 +4548,21 @@ get_desktop_environment()
#Qt: 5.4.2
#KDE Frameworks: 5.11.0
#kf5-config: 1.0
version_data=$( kf$KDE_SESSION_VERSION-config --version 2>/dev/null )
version=$( grep -si '^KDE Frameworks:' <<< "$version_data" | gawk '{print $NF}' )
# for QT, and Frameworks if we use it
if type -p kf$KDE_SESSION_VERSION-config &>/dev/null;then
version_data=$( kf$KDE_SESSION_VERSION-config --version 2>/dev/null )
# version=$( grep -si '^KDE Frameworks:' <<< "$version_data" | gawk '{print $NF}' )
fi
# plasmashell 5.3.90
if type -p plasmashell &>/dev/null;then
version2_data=$( plasmashell --version 2>/dev/null )
version=$( grep -si '^plasmashell' <<< "$version2_data" | gawk '{print $NF}' )
fi
fi
if [[ -z $version ]];then
version=$KDE_SESSION_VERSION
fi
if [[ $B_EXTRA_DATA == 'true' ]];then
if [[ $B_EXTRA_DATA == 'true' && -n $version_data ]];then
toolkit=$( grep -si '^Qt:' <<< "$version_data" | gawk '{print $2}' )
if [[ -n $toolkit ]];then
version="$version (Qt $toolkit)"

View file

@ -1,3 +1,19 @@
=====================================================================================
Version: 2.2.26
Patch Version: 00
Script Date: 2015-07-06
-----------------------------------
Changes:
-----------------------------------
New version, new tarball. This fixes a bug with the last fix for KDE Plasma version. It was
showing Frameworks version, which is apparently NOT the same as the plasma version.
Also added debugger kde versioning to make this stuff less of an ordeal for data collection.
-----------------------------------
-- Harald Hope - Mon, 06 Jul 2015 15:51:51 -0700
=====================================================================================
Version: 2.2.25
Patch Version: 00