new version, new tarball. Adding tentative desktop id for LXQt, but I don't think

that this method will be super long lived, I expect LXDE to change how it shows itself
to the system when the gtk variant goes away. Good for lxde by the way in dumping gtk.
This commit is contained in:
inxi-svn 2014-05-05 19:13:08 +00:00
parent 508f94e992
commit 752e9c1420
2 changed files with 28 additions and 7 deletions

17
inxi
View file

@ -1,8 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
######################################################################## ########################################################################
#### Script Name: inxi #### Script Name: inxi
#### Version: 2.1.27 #### Version: 2.1.28
#### Date: 2014-05-02 #### Date: 2014-05-05
#### Patch Number: 00 #### Patch Number: 00
######################################################################## ########################################################################
#### SPECIAL THANKS #### SPECIAL THANKS
@ -4168,7 +4168,7 @@ get_desktop_environment()
eval $LOGFS eval $LOGFS
# set the default, this function only runs in X, if null, don't print data out # set the default, this function only runs in X, if null, don't print data out
local desktop_environment='' xprop_root='' local desktop_environment='' xprop_root='' version2=''
local version='' version_data='' toolkit='' local version='' version_data='' toolkit=''
# works on 4, assume 5 will id the same, why not, no need to update in future # works on 4, assume 5 will id the same, why not, no need to update in future
@ -4318,16 +4318,23 @@ get_desktop_environment()
# note: openbox-lxde --version may be present, but returns openbox data # note: openbox-lxde --version may be present, but returns openbox data
version=$( get_program_version 'openbox' '^openbox' '2' ) version=$( get_program_version 'openbox' '^openbox' '2' )
if [[ $XDG_CURRENT_DESKTOP == 'LXDE' || \ if [[ $XDG_CURRENT_DESKTOP == 'LXDE' || \
-n $( grep -is 'lxde' <<< "$Ps_aux_Data" ) ]];then -n $( grep -is '/lxsession' <<< "$Ps_aux_Data" ) ]];then
if [[ -n $version ]];then if [[ -n $version ]];then
version="(Openbox $version)" version="(Openbox $version)"
fi fi
desktop_environment='LXDE' desktop_environment='LXDE'
elif [[ $XDG_CURRENT_DESKTOP == 'Razor' || \
-n $( grep -Eis '(razor-desktop|lxqt-session)' <<< "$Ps_aux_Data" ) ]];then
if [[ -n $( grep -is 'lxqt-session' <<< "$Ps_aux_Data" ) ]];then
desktop_environment='LXQt'
elif [[ -n $( grep -is 'razor-desktop' <<< "$Ps_aux_Data" ) ]];then elif [[ -n $( grep -is 'razor-desktop' <<< "$Ps_aux_Data" ) ]];then
desktop_environment='Razor-QT'
else
desktop_environment='LX-Qt-Variant'
fi
if [[ -n $version ]];then if [[ -n $version ]];then
version="(Openbox $version)" version="(Openbox $version)"
fi fi
desktop_environment='Razor-QT'
else else
desktop_environment='Openbox' desktop_environment='Openbox'
fi fi

View file

@ -1,3 +1,17 @@
=====================================================================================
Version: 2.1.28
Patch Version: 00
Script Date: 2014-05-05
-----------------------------------
Changes:
-----------------------------------
new version, new tarball. Adding tentative desktop id for LXQt, but I don't think
that this method will be super long lived, I expect LXDE to change how it shows itself
to the system when the gtk variant goes away. Good for lxde by the way in dumping gtk.
-----------------------------------
-- Harald Hope - Mon, 05 May 2014 12:11:27 -0700
===================================================================================== =====================================================================================
Version: 2.1.27 Version: 2.1.27
Patch Version: 00 Patch Version: 00