mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
found another small bug/issue, which will impact probably nobody, inxi was using an obsolete kde command
kde-config rather than the current: kde4-config, so now it tests if the commands exist, tries kde4, then kde5 then kde this is probably not used by any distro so it does not matter, but it was wrong so it's fixed now.
This commit is contained in:
parent
bb90012cd7
commit
0647816d98
17
inxi
17
inxi
|
@ -630,7 +630,7 @@ main()
|
||||||
{
|
{
|
||||||
eval $LOGFS
|
eval $LOGFS
|
||||||
|
|
||||||
local color_scheme=''
|
local color_scheme='' kde_config_app=''
|
||||||
# this will be used by all functions following
|
# this will be used by all functions following
|
||||||
local Ps_aux_Data="$( ps aux )"
|
local Ps_aux_Data="$( ps aux )"
|
||||||
|
|
||||||
|
@ -685,11 +685,20 @@ main()
|
||||||
DCTARGET="$2" ##dbus testing
|
DCTARGET="$2" ##dbus testing
|
||||||
shift 2
|
shift 2
|
||||||
fi
|
fi
|
||||||
|
# always have the current stable kde version tested first,
|
||||||
|
# then use fallbacks and future proofing
|
||||||
|
if type -p kde4-config &>/dev/null;then
|
||||||
|
kde_config_app='kde4-config'
|
||||||
|
elif type -p kde5-config &>/dev/null;then
|
||||||
|
kde_config_app='kde5-config'
|
||||||
|
elif type -p kde-config &>/dev/null;then
|
||||||
|
kde_config_app='kde-config'
|
||||||
|
fi
|
||||||
# The section below is on request of Argonel from the Konversation developer team:
|
# The section below is on request of Argonel from the Konversation developer team:
|
||||||
# it sources config files like $HOME/.kde/share/apps/konversation/scripts/inxi.conf
|
# it sources config files like $HOME/.kde/share/apps/konversation/scripts/inxi.conf
|
||||||
|
if [[ -n $kde_config_app ]];then
|
||||||
IFS=":"
|
IFS=":"
|
||||||
for kde_config in $( kde-config --path data )
|
for kde_config in $( $kde_config_app --path data )
|
||||||
do
|
do
|
||||||
if [[ -r $kde_config$KONVI_CFG ]];then
|
if [[ -r $kde_config$KONVI_CFG ]];then
|
||||||
source "$kde_config$KONVI_CFG"
|
source "$kde_config$KONVI_CFG"
|
||||||
|
@ -698,6 +707,7 @@ main()
|
||||||
done
|
done
|
||||||
IFS="$ORIGINAL_IFS"
|
IFS="$ORIGINAL_IFS"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
## leave this for debugging dcop stuff if we get that working
|
## leave this for debugging dcop stuff if we get that working
|
||||||
# print_screen_output "DCPORT: $DCPORT"
|
# print_screen_output "DCPORT: $DCPORT"
|
||||||
|
@ -4893,6 +4903,7 @@ get_gcc_system_version()
|
||||||
log_function_data "A_GCC_VERSIONS: $a_temp"
|
log_function_data "A_GCC_VERSIONS: $a_temp"
|
||||||
eval $LOGFE
|
eval $LOGFE
|
||||||
}
|
}
|
||||||
|
|
||||||
get_gpu_temp_data()
|
get_gpu_temp_data()
|
||||||
{
|
{
|
||||||
local gpu_temp='' gpu_fan='' screens='' screen_nu='' gpu_temp_looper=''
|
local gpu_temp='' gpu_fan='' screens='' screen_nu='' gpu_temp_looper=''
|
||||||
|
|
Loading…
Reference in a new issue