Re: How to detect a gtk desktop programmatically
Zander Brown <[email protected]>
| Newsgroups | gmane.comp.gnome.desktop |
|---|---|
| Organization | GNOME |
| Message-ID | <DB8PR01MB6232FD1F5007CE35D0F36F20DCAD0@DB8PR01MB6232.eurprd01.prod.exchangelabs.com> |
> That's an unfortunate truth which is why I was hoping for an alternative way > to detect this. > At time of writing this, Ubuntu's the only one I've found modifying > XDG_CURRENT_DESKTOP and keep something indicative of Gtk inside e.g. > (ubuntu:GNOME). 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: 1. Convince every desktop session to export "OPENJDK_HEY_IM_GTK" and look at that. - and then wait 4/5 years for that to trickle down to users 2. Maintain a map of know names in OpenJDK itself 3. Assume all Linux based platforms use Gtk 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 _______________________________________________ desktop-devel-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/desktop-devel-list
signature.asc
(application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEERYvmWtVMPlyWtoEoJe48NuMeX4QFAl6qAFcACgkQJe48NuMe X4T81QgAiuE9Kf+bnk6EGzFvUwiDO2meZugfHAX+hT++av1WdNbiJoAwjKXsMrqp p+qhWAGyAd6axZEEVLF76Y1j/wiar9BBqmQu76hPds3AjlyVcfQdvfZ3sj8Wn5AF uL7+rh4UXh2B5NmEoQPPwg+IC9IEBKfw5I87f442u4KMl44OF/XKwA07etuoLHOK dOMeAnxtUuPvMdVAIzB+xA+l25jrrD1seh57++0WL1JsfzRjxwzO5QodPio7JGRx LLyE/mAug8jaYlX4LJoBhuMkJA5QznRPbz+0OtahrWdji29TD80pyIPS702wdU61 SbumQzSOYq0xtFYwY8RloUMOmW8IvA== =/8em -----END PGP SIGNATURE-----