How to detect if Linux OS uses KDE or Gnome environment
System.getenv("XDG_CURRENT_DESKTOP")
returns "GNOME"
on my machine. Try it out on KDE-based box.
See also
- Determine what window manager is running?
System.getenv("XDG_CURRENT_DESKTOP")
returns "GNOME"
on my machine. Try it out on KDE-based box.