Comments (8)
Check commit 0bdfb0e should fix by looking for $XDG_CURRENT_DESKTOP first
from sysfetch.
It works now, thanks!
from sysfetch.
Sorry for the typo. I don't think anyone has that directory. It was failing on my machine too; I just didn't notice because all of the de/wm options print 'i3' for me. Commit 6faf4ee should be good to go
from sysfetch.
Thanks. It no longer shows as Weston, but it still doesn't detect XFCE (nor its window manager xfwm4 either).
job@job-pc
kernel ~ 5.10.0-9-amd64
uptime ~ 0 weeks, 25 hours, 45 minutes
os ~ Devuan GNU/Linux 4 (chimaera) arch ~ x86_64
de/wm ~ theme ~ Breeze
cpu ~ Intel Core i3-6006U [email protected]
gpu ~ Intel Skylake GT2 HD Graphics 520 (rev 07)
pkgs ~ 4317
ram ~ 3830 MiB swap ~ 5119MiB 12287MiB
term ~ utmp shell ~ bash
from sysfetch.
Can you run each one of these commands and share output of each in the same order? Make sure to use latest build from alpha branch
head /usr/share/xsessions/* | grep -im1 'names=' | sed 's/DesktopNames=//'
head /usr/share/wayland-sessions/* | grep -im1 'name=' | sed 's/name=//gi' | sort -u | sed ':a;N;$!ba;s/\n/, /gi'
xprop -root | grep -m1 '^_NET_WM_NAME' | sed 's/^_NET_WM_NAME//g;s/(UTF8_STRING) = //g'
from sysfetch.
First and third command returns nothing for me. Second command returns Weston
.
Output of latest alpha:
job@job-pc
kernel ~ 5.10.0-9-amd64
uptime ~ 1 days, 22 hours, 56 minutes
os ~ Devuan GNU/Linux 4 (chimaera) arch ~ x86_64
de/wm ~ theme ~ Breeze
cpu ~ Intel Core i3-6006U [email protected]
gpu ~ Intel Skylake GT2 HD Graphics 520 (rev 07)
pkgs ~ 4317
ram ~ 3830 MiB swap ~ 5119MiB 12287MiB
term ~ utmp shell ~ bash
from sysfetch.
Those are the ones I have included in the script to look for your desktop environment currently.
Maybe your system has the environment variable set since it's a DE, try these:
echo $XDG_CURRENT_DESKTOP
echo $DESKTOP_SESSION
We could use the very commonly pre-installed dependency wmctrl, which was the single dependency I required with first commit, try:
wmctrl -m
Possible alternative could be:
ps -e | grep "xfce"
and filter output
from sysfetch.
echo $XDG_CURRENT_DESKTOP
= XFCE
echo $DESKTOP_SESSION
= lightdm-xsession
I didn't have wmctrl
installed. Installed it, and wmctrl -m
returns:
Name: Xfwm4
Class: xfwm4
PID: 3669
Window manager's "showing the desktop" mode: N/A
ps -e | grep "xfce"
:
3500 ? 00:00:27 xfce4-session
4754 ? 00:04:27 xfce4-panel
4837 ? 00:00:05 xfce4-power-man
4843 ? 00:00:04 xfce4-notifyd
22600 ? 00:00:09 xfce4-settings-
23188 ? 00:00:02 xfce4-appearanc
from sysfetch.
Related Issues (20)
- DE/WM themes not working again HOT 2
- Current Build: Theme category not showing: HOT 17
- Uptime display supposed to be like this?: HOT 3
- Add support for Windows and Mac HOT 13
- CPU Frequency issue under WSL2: HOT 3
- KDE / KRunner / Latte Dock `term` Value
- Wrong values for TERM and WM HOT 16
- syntax error: invalid arithmetic operator HOT 1
- lsblk: /dev/nvme0n1p: not a block device HOT 30
- Errors on Qemu HOT 4
- Arch WSL2 output very slim HOT 2
- Errors on Android via Termux HOT 4
- Not able to access drive and exiting on Alpine HOT 2
- No output on Fedora VM HOT 4
- Slim output on MINGW Windows HOT 1
- Verbose option HOT 5
- Several ascii art missing HOT 1
- Suggestion: rename sysfetch to sysfetch.sh HOT 1
- ASCII art not working.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sysfetch.