This commit is contained in:
Kovid Goyal 2014-10-27 01:12:38 +05:30
parent 12c9fccc2d
commit 9ec0e3cdd4

View File

@ -135,7 +135,8 @@ static inline QByteArray detectDesktopEnvironment()
{ {
const QByteArray xdgCurrentDesktop = qgetenv("XDG_CURRENT_DESKTOP"); const QByteArray xdgCurrentDesktop = qgetenv("XDG_CURRENT_DESKTOP");
if (!xdgCurrentDesktop.isEmpty()) if (!xdgCurrentDesktop.isEmpty())
return xdgCurrentDesktop.toUpper(); // KDE, GNOME, UNITY, LXDE, MATE, XFCE... // See http://standards.freedesktop.org/menu-spec/latest/apb.html
return xdgCurrentDesktop.toUpper();
// Classic fallbacks // Classic fallbacks
if (!qEnvironmentVariableIsEmpty("KDE_FULL_SESSION")) if (!qEnvironmentVariableIsEmpty("KDE_FULL_SESSION"))