Opened 9 months ago

Closed 9 months ago

#930 closed System Defect (fixed)

Can't detect current DE using system environment

Reported by: yurkis Owned by:
Priority: major Milestone:
Component: System Configuration Version: 10.0-RELEASE
Keywords: Cc: trac-bugs@…

Description

When I improve de profiles for de-info script I can't find system environment variables specific for some of them.

I check presence of $CINNAMON_VERSION for detection cinnamon
I can use $GNOME_KEYRING_CONTROL or $GNOME_SESSION_ID (marked as deprcated). Both of that vars looks not perfect for detection
An finally I can't find variable specific to Mate :(

The good solution may be adding by PCDM some variable with desktop name. Anyway de profiles scripts are checks $DESKTOP_SESSION.

Change History (1)

comment:1 Changed 9 months ago by kenmoore

  • Resolution set to fixed
  • Status changed from new to closed

Done!

https://github.com/pcbsd/pcbsd/commit/9a6b8ef252c78ed6b2cfda6d491399e561a56b68

NOTE: You will want to have it check the "PCDM_SESSION" environment variable now. It will be set to the (all uppercase) non-localized name of the desktop environment (as set in the /usr/local/share/xsessions/*.desktop file that was selected). For example: KDE, XFCE, LXDE, GNOME, CINNAMON, MATE, etc...

Note: See TracTickets for help on using tickets.