That's an unfortunate truth which is why I was hoping for an alternative way to detect this. Nothing about "ubuntu:GNOME" is "indicative of Gtk", it's stating the fact your running Ubuntu's modified GNOME session. XDG_CURRENT_DESKTOP is supposed to indicate just that: the current desktop environment Not some insight into whatever technology that desktop is using - other variables like XDG_SESSION_TYPE do that Really there is 3 approaches here:
When your trying to choose between Windows, GTK, Aqua, Motif & Metal the best choice would seem to be 3 When KDELookAndFeel becomes a thing you can worry about detecting KDE or LXQt, currently this is a rather academic exercise |
Attachment:
signature.asc
Description: This is a digitally signed message part