I could really use your help in getting the display manager, graphical shell, and settings app binary name & version for your desktop environment and/or window manager for use in one of my programs.
neofetch and fastfetch provide the info you are looking for, I believe. These are both installabe through zypper. They run from a terminal. Give a try.
Thanks, this could be useful for users who need to figure out their DE/WM.
I have access to Gnome only at this time, hopefully someone with KDE, Xfce, or others can chime in with their outputs.
It is easy to setup a VM and install all DE patterns to get the required input.
Btw all official available DEs and WMs including versions are known and can be seen in YaST Software (Scheme-> Graphical Environment). Or via zypper se.
penguin:~> Hyprland --version || echo $?
Hyprland, built from branch at commit dirty ().
Date:
Tag: , commits:
built against aquamarine 0.4.1
penguin:~> zypper info hyprland
Loading repository data...
Reading installed packages...
Information for package hyprland:
---------------------------------
Repository : repo-oss
Name : hyprland
Version : 0.44.1-1.1
Arch : x86_64
Vendor : openSUSE
Installed Size : 7.8 MiB
Installed : Yes
Status : up-to-date
Source package : hyprland-0.44.1-1.1.src
Upstream URL : https://hyprland.org/
Summary : Dynamic tiling Wayland compositor
Description :
Hyprland is a dynamic tiling Wayland compositor
based on wlroots
that doesn't sacrifice on its looks.
It supports multiple layouts, fancy effects, has a
very flexible IPC
model allowing for a lot of customization, and
more.
@hui@marel Unfortunately, I don’t need the version string itself but the command to get the version string. For example, the hyprland binary is called Hyprland with a capital H and I didn’t know that, I also could confirm from @penguinrapper 's response that the option to get version was indeed --version and not -V or -version or some other weirdness.
If you guys have a KDE or Xfce machine, I would really appreciate the info, not having to waste time setting up a new VM and install all the DEs myself!
Eventually I found in /usr/lib/X11/display-manager:
# DISPLAYMANAGER used to be set in /etc/sysconfig/displaymanager, but the default is now set by update-alternatives
DISPLAYMANAGER=$(realpath --relative-base=/usr/lib/X11/displaymanagers /usr/lib/X11/displaymanagers/default-displaymanager)
DM=${DISPLAYMANAGER##*/}
@marel Please don’t run the above command, I found an old KDE VM that I’m in the process of upgrading. Running even sddm --version would launch the greeter and may be even log you out of your session
Don’t worry I did already try several things like this and got even an additional greeter screen but found no way to get the SDDM version apart from the info zypper has for sddm-qt6 or using:
@marel@mrmazda Thanks, I tested both KDE and Xfce and there was no way to get those to print their versions without having the user’s environment variables, so it’s a no-go for now