Neofetch says Gnome 40.5, Configuration says 40.4
Jose Luis Alarcon Sanchez
jlalarcon at planetmail.net
Wed Oct 27 14:06:40 UTC 2021
El mié, 27 de oct de 2021 a las 01:34, Slade Watkins
<slade at sladewatkins.com> escribió:
> Good morning,
> See my response inline.
>
> On Wed, Oct 27, 2021 at 1:27 AM Ralf Mardorf via ubuntu-users
> <ubuntu-users at lists.ubuntu.com> wrote:
>>
>> Hi,
>>
>> neofetch is a bash script that does a lot of guessing, if for
>> example
>> the non-standard fantasy environment variable XDG_CURRENT_DESKTOP
>> isn't
>> set, it falls back to the DESKTOP_SESSION variable, that probably
>> only
>> shows the file that tells the display manager how to start a GUI
>> user
>> session. In my case a non-*buntu lightdm starts a script to select
>> an
>> openbox window manager profile. No desktop environment gets
>> launched.
>>
>> The script makes assumptions. It's a slow, bloated, fancy tool that
>> partly provides correct information and partly just displays
>> useless clutter.
>>
>> You need to take a look at the script and verify first, if it
>> provides
>> valid information or just pointless crap.
>>
>> "Neofetch displays information about your operating system, software
>> and hardware in an aesthetic and visually pleasing way." -
>> https://github.com/dylanaraps/neofetch
>>
>> The script's focus is on eye candy, not on reliability, neither on
>> suitable processing speed or real portability, since it requires
>> bash
>> even on "BSD".
>
>
> As someone who has used it before, I agree here. You'll be better off
> finding something lighter (and way more accurate) that can accomplish
> the same things as Neofetch.
>
>>
>> If bashisms are really wanted, then it still is smart to e.g. avoid
>> endless "if" checking in favour of the faster "case" checking etc.,
>> let
>> alone that it's already questionable that such a checking is needed
>> to
>> provide facts. Facts are available by e.g. /sys/devices/system/
>> without
>> the need of "if" "else" checking.
>>
>>
>> $ neofetch | grep DE
>> DE: openbox-lcd-realignment
>> $ echo $XDG_CURRENT_DESKTOP
>>
>> $ echo $DESKTOP_SESSION
>> openbox-lcd-realignment
>> $ grep Exec /usr/share/xsessions/openbox-lcd-realignment.desktop
>> Exec=/usr/local/bin/openbox-profile-lcd-realignment
>> TryExec=/usr/local/bin/openbox-profile-lcd-realignment
>> $ ls -hld ~/.config/openbox* | head -4
>> lrwxrwxrwx rocketmouse rocketmouse 31 B Tue Oct 26 10:12:30 2021
>> /home/rocketmouse/.config/openbox ⇒ openbox-profile-lcd-realignment
>> drwxr-xr-x rocketmouse rocketmouse 4.0 KB Sat Sep 13 15:05:58 2014
>> /home/rocketmouse/.config/openbox-profile
>> drwxr-xr-x rocketmouse rocketmouse 4.0 KB Tue Aug 8 20:40:28 2017
>> /home/rocketmouse/.config/openbox-profile-lcd-1
>> drwxr-xr-x rocketmouse rocketmouse 4.0 KB Sun Aug 27 12:50:28 2017
>> /home/rocketmouse/.config/openbox-profile-lcd-realignment
>> $ grep DE /usr/bin/neofetch
>> # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
>> EXPRESS OR
>> # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
>> OTHER
>> # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
>> DEALINGS IN THE
>> info "DE" de
>> # Hyperbola, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion,
>> # Korora, KSLinux, Kubuntu, LEDE, LFS, Linux_Lite,
>> # LMDE, Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva,
>> # DETECT INFORMATION
>> off)
>> distro="${PRETTY_NAME:-${DISTRIB_DESCRIPTION}} ${UBUNTU_CODENAME}" ;;
>> elif [[ -f /etc/SDE-VERSION ]]; then
>> distro="$(< /etc/SDE-VERSION)"
>> if [[ $DESKTOP_SESSION == regolith ]]; then
>> elif [[ $XDG_CURRENT_DESKTOP ]]; then
>> de=${XDG_CURRENT_DESKTOP/X\-}
>> elif [[ $DESKTOP_SESSION ]]; then
>> de=${DESKTOP_SESSION##*/}
>> elif [[ $GNOME_DESKTOP_SESSION_ID ]]; then
>> elif [[ $MATE_DESKTOP_SESSION_ID ]]; then
>> elif [[ $TDE_FULL_SESSION ]]; then
>> # window manager name. This checks to see if WM == DE
>> # and discards the DE value.
>> de=$(xprop -root | awk
>> '/KDE_SESSION_VERSION|^_MUFFIN|xfce4|xfce5/')
>> KDE_SESSION_VERSION*) de=KDE${de/* = } ;;
>> ((${KDE_SESSION_VERSION:-0} >= 4)) && de=${de/KDE/Plasma}
>> de_ver=${de_ver/*TDE:}
>> LXDE*) ob_file=lxde-rc ;;
>> # Get DE if user has disabled the function.
>> # Check for DE Theme.
>> "KDE"* | "Plasma"*)
>> err "Theme: KDE config files not found,
>> skipping."
>> theme="${theme/ '[KDE]'}"
>> # Get DE if user has disabled the function.
>> # If the user is using KDE get the KDE
>> KaOS, KDE_neon, Kibojoe, Kogaion,
>> Korora, KSLinux, Kubuntu, LEDE,
>> LFS, Linux_Lite, LMDE, Lubuntu,
>> Lunar, macos, Mageia, MagpieOS,
>> DEVELOPER:
>> info "DE" de
>> ${c1} IJFDUFHJNXIXCDXDSV,${c2} "DEBL
>> "KDE"*)
>> "LEDE"*)
>> / DE / \
>> \ \ DE /
>> \ DE \ /
>> "LMDE"*)
>>
>>
>> Regards,
>> Ralf
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
> Best,
> -slade
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Thanks very much, Keith, Ralf, Slade, for your answers.
Regards.
Jose.
--
http://lordofunix.eu5.org/
Not Registered GNU/Hurd User.
Registered BSD User 51101.
Registered Linux User #213309.
Memories..... You are talking about memories.
Rick Deckard. Blade Runner.
More information about the ubuntu-users
mailing list