Giter Site home page Giter Site logo

Comments (8)

wick3dr0se avatar wick3dr0se commented on May 27, 2024 1

Check commit 0bdfb0e should fix by looking for $XDG_CURRENT_DESKTOP first

from sysfetch.

jobbautista9 avatar jobbautista9 commented on May 27, 2024 1

It works now, thanks!

from sysfetch.

wick3dr0se avatar wick3dr0se commented on May 27, 2024

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.

jobbautista9 avatar jobbautista9 commented on May 27, 2024

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.

wick3dr0se avatar wick3dr0se commented on May 27, 2024

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.

jobbautista9 avatar jobbautista9 commented on May 27, 2024

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.

wick3dr0se avatar wick3dr0se commented on May 27, 2024

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.

jobbautista9 avatar jobbautista9 commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.