-
-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux Mint 21.2 Cinnamon DE #782
Comments
Confirmed. Neofetch reports this correctly btw (I am using arch linux) screenfetch:
neofetch:
|
I think I figured out what is up here. I did some investigation into how screenfetch gets this string and determines cinnamon. The first is checking the output of
On my system, this is not present. Then, it moves on to checking the value of XDG_CURRENT_DESKTOP:
Which, in my case is X-Cinnamon, and it gets detected correctly from there
But the next if statement for the final fallback checks the following:
Which is a check for "$DE is not empty", which it won't be, because the previous check worked. Actually, I'm pretty sure the contents of this if statement ALWAYS run, because "$DE" actually gets initialized to "Not Present" If I change the condition of this if statement to what was on the previous one:
Then screenfetch reports "DE: Cinnamon 6.0.4" as expected |
incorrect DE detection There are two instances of the condition: if [ -n "$DE" ]; then I think if statements with this condition were ALWAYS running, because at the beginning of detectde () $DE gets initialized to "Not Present". if [[ -z "$DE" || "$DE" = "Not Present" ]]; then There was one instance of this, which I believe is supposed to have a "==" vs "=". The first part of the condition is also NEVER false, since $DE gets initialized to "Not Present", as mentioned before, so I just removed it. Fixes KittyKatt#782 (and possibly others)
There are two instances of the condition: if [ -n "$DE" ]; then I think if statements with this condition were ALWAYS running, because at the beginning of detectde () $DE gets initialized to "Not Present". if [[ -z "$DE" || "$DE" = "Not Present" ]]; then There was one instance of this, which I believe is supposed to have a "==" vs "=". The first part of the condition is also NEVER false, since $DE gets initialized to "Not Present", as mentioned before, so I just removed it. Fixes KittyKatt#782 (and possibly others)
I would appreciate testing of this change. |
I'm submitting a ... (check one with "x")
Bug report
:: Finding distro...found as 'Mint 21.2'
:: Finding hostname and user...found as 'pagandegree@PaganMint'
:: Finding kernel version...found as 'x86_64 Linux 6.2.0-37-generic'
:: Finding current uptime...found as '5h 9m'
:: Finding current package count...found as '2817'
:: Finding current shell...found as 'bash 5.1.16'
:: Finding current resolution(s)...found as '5760x1080'
:: Finding desktop environment...found as 'GNOME'
:: Finding window manager...found as 'Muffin'
:: Finding window manager theme...found as 'Mint-Y-Dark (Mint-Y)'
:: Finding GTK2 theme...found as 'Mint-Y-Aqua'
:: Finding GTK3 theme...found as 'Mint-Y-Aqua'
:: Finding icon theme...found as 'Mint-Y-Sand'
:: Finding user font...found as 'Ubuntu 10'
:: Finding current CPU...found as 'AMD Ryzen 7 7800X3D 8-Core @ 16x 4.2GHz'
:: Finding current disk usage...found as '5.2T / 13T (42%%)'
:: Finding current GPU...found as 'Radeon RX 7900 XTX (gfx1100, LLVM 16.0.6, DRM 3.54, 6.2.0-37-generic)'
:: Finding current RAM usage...found as '6320MiB / 31794MiB'
New distro request
The text was updated successfully, but these errors were encountered: