$DESKTOP_SESSION


Recommended Posts

Hey Guys i need as many of these as i can

I need to know what $DESKTOP_SESSION shows in the following DE's

LXDE

XFCE

Cinnamon

KDE

Gnome 2

Gnome 3

and any others you could provide

can you paste what yours says and also what DE ur on :)

Link to comment
https://www.neowin.net/forum/topic/1121234-desktop_session/
Share on other sites


Arch Linux release
LSB_VERSION=1.4
DISTRIB_ID=arch
DISTRIB_RELEASE=rolling
DISTRIB_DESCRIPTION="Arch Linux"
NAME="Arch Linux"
ID=arch
PRETTY_NAME="Arch Linux"
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
[/CODE]

$ cat /etc/*-release

Fedora release 17 (Beefy Miracle)

NAME=Fedora

VERSION="17 (Beefy Miracle)"

ID=fedora

VERSION_ID=17

PRETTY_NAME="Fedora 17 (Beefy Miracle)"

ANSI_COLOR="0;34"

CPE_NAME="cpe:/o:fedoraproject:fedora:17"

Fedora release 17 (Beefy Miracle)

Fedora release 17 (Beefy Miracle)

i am making a little system script thats give system info and takes a screenshot

on every other release so far the last line in "cat /etc/*-release" is the distro name

all but Arch lol

Awesome thanks

i had got as far as

os=$(cat /etc/*-release | awk '/PRETTY_NAME/{print}')[/CODE]

lol
anyone wanna test it to make sure it works if i send a link?

EDIT: Tiagosilva mentioned lsb_release, which seems to do a lot of what you need with less need for grepping and whatnot.
[code]
[karl@HERA ~]$ lsb_release -d
Description:    Arch Linux

I assume that using 'lsb_release --codename' in Fedora would produce "Beefy Miracle", in Arch it produces "n/a".

In case you're still interested, I haven't seen any Debian users post yet so I'll contribute as well.


$ echo $DESKTOP_SESSION

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux wheezy/sid"
NAME="Debian GNU/Linux"
ID=debian
ANSI_COLOR="1;31"
$ lsb_release -a
Distributor ID: Debian
Description: Debian GNU/Linux testing (wheezy)
Release: testing
Codename: wheezy
$ uname -a
Linux ZIPPYZEBRA 3.2.0-4-powerpc #1 Debian 3.2.32-1 ppc GNU/Linux
[/CODE]

Note that my [i]$DESKTOP_SESSION[/i] is unset. I am running Openbox as my DE, if that helps.

hmmm i thought openbopx set the $desktop_session

thats fine though if it does not find any it sets as "Not Found" lol

I think i will stick with Pretty_Name from /etc/*-release as it seems to be on all Distros

xorangekiller i have pm'd you with a link if you would like to test i would like a few people with different distros to do this :)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I agree, but that's the popular online opinion about them, so I followed it. I do think they have their point, no matter how combative they sound most of the time.
    • M$ can bring whatever the hell it wants, and then guess what's not installed in my Mac.
    • Windows 11's big performance boost is finally available for all by Taras Buria Over the last few months, Microsoft has been very busy fixing Windows 11 with features that users have been asking the company for a long time. An upgraded Start menu, the ability to change the taskbar position, new Windows Update features, and plenty more. However, not all changes are visible on the surface. Some exciting upgrades happened under the hood, and one of those upgrades is now available to all Windows 11 users. The so-called "Low Latency Profile" is a special performance mode that aims to make Windows 11 snappier and more responsive. It boosts the processor clock speed to its maximum for a brief moment when rendering user interface elements or launching apps. As such, apps launch faster, and things like the Start menu or quick settings appear on the screen faster, although some are sceptical about it. Microsoft is not sharing many details about the new profile. The official release notes do not even mention it, with Microsoft only saying that the update "accelerates app launch and core shell experiences such as Start menu, Search, and Action Center." Also, you may need to enable it manually, as new features are rolling out gradually. Here is how to do it: Download ViVeTool from GitHub and unpack wherever convenient. Navigate to the folder containing the ViveTool files with the CD command. For example, if you have placed ViveTool in C:\Vive, type CD C:\Vive. Type vivetool /enable /id:58989092 and press Enter. Restart your computer. After restarting your computer, launch Task Manager or any other hardware-monitoring software and check the processor clocks when opening the Start menu, Action Center, and more. Your processor should spike to its highest possible speed and then return to lower clocks. In addition to Low Latency Mode, the June 2026 Patch Tuesday update delivers additional features, such as multi-camera mode for apps (several apps can use a single camera stream), shared Bluetooth audio, improved Task Manager, and more.
    • I agree, especially with newer versions of MS Office supporting ODF documents, there isn't even a compatibility argument to be made. It should default to ODF on a clean install, with admin configurable options to make MS Office the default if that is desired.
    • Are they on crack at M$? Surely living on an alternative reality? A good dump of mine would run faster down the toilet if I did not flush it. But still looks better than this pile of slop. By the way, did they also comment on what's the next "functionality added"? Maybe you can improve it if you add even more stuff to this vomitware.
  • Recent Achievements

    • Week One Done
      FBSPL earned a badge
      Week One Done
    • One Year In
      Jim Dugan earned a badge
      One Year In
    • One Month Later
      Tommi118 earned a badge
      One Month Later
    • One Month Later
      sjbousquet earned a badge
      One Month Later
    • Week One Done
      sjbousquet earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      488
    2. 2
      PsYcHoKiLLa
      196
    3. 3
      +Edouard
      155
    4. 4
      Steven P.
      84
    5. 5
      ATLien_0
      69
  • Tell a friend

    Love Neowin? Tell a friend!