dylanaraps / neofetch

🖼️ A command-line system information tool written in bash 3.2+
MIT License
22.18k stars 1.66k forks source link

Neofetch Cannot Determine Correct Theme - Affects Multiple Distros & PCs #2003

Open ViejoRS opened 2 years ago

ViejoRS commented 2 years ago

Description

Manjaro with KDE Plasma. Proprietary Intel gpu drivers.

When running neofetch, the "Theme" seems to be stuck on Breath2 2021 Light [Plasma] no matter what I actually change the theme to. I've gone through all my personalization settings and cannot find anywhere it is pulling the Breath2 information from - the theme is currently Layan..

Neofetch version

7.1.0

Screenshot

Screenshot_20211220_135605

Config file (Pastebin will not let me upload this)

https://ghostbin.com/Ol7d5

Verbose log

  1. Run neofetch -vv 2> neofetchlog

  2. Upload the contents of neofetchlog to pastebin, gist or equivalent. Looks like there's an issue with Neofetch retrieving the theme information:

https://pastebin.com/eGQ5p1LU

Edit: Deleting my config file and reinstalling Neofetch with the default .config/neofetch/config.conf file did not have an impact on this. Seems like Neofetch is unable to query the theme info from KDE for some reason.

ViejoRS commented 2 years ago

Update: I have now confirmed that this affects multiple Arch-based distros on Plasma (not sure if it's limited to Plasma only) as well as multiple PC's. I've had this same issue both on Manjaro and Endeavour, with a fresh vanilla install. Same behavior both on my laptop and my desktop HTPC.

I created a topic on the Endeavour forums and it seems some other people are starting to report the same issue.

onurbbr commented 2 years ago

I also have this bug. It either displays the Plasma theme incorrectly or not at all. Materia Dark theme and Papirus icon pack installed. Screenshot_20220112_191041

anchovyyy commented 2 years ago

Same here

image

ViejoRS commented 2 years ago

Issue still active, present on Arch/Manjaro/Endeavour, presumably anything Arch based using Plasma desktop. Currently: Plasma 5.24.3 Frameworks 5.92 QT 5.15.3 Affects both X11 and Wayland

Dylan pls ;_;

mrczntt commented 2 years ago

I had the same problem on Arch with Plasma 5.25.5. I found a workaround by adding these lines to ~/.config/kdeglobals:

[neofetch]
Name=whatever Theme=whatever

This seems to manually set what gets printed in the "Plasma" subsection of the "Theme" and "Icons" sections of neofetch

adcpe commented 1 year ago

I was just looking at this. On my version of Plasma (5.26.5) the theme name is located at .config/plasmarc. The file is pretty barebones only containing 2 lines:

[Theme]
name=Arc-Color

Maybe at some point the KDE team changed where this variable was stored.

The fix should be pointing to .config/plasmarc if grep '^Name' $HOME/.config/kdeglobals comes out empty.

mcneb10 commented 1 year ago

I'm also experiencing this on Plasma 5.27.7. I also found the theme name in ~/.config/plasmarc