mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
12c9fccc2d
commit
9ec0e3cdd4
@ -135,7 +135,8 @@ static inline QByteArray detectDesktopEnvironment()
|
||||
{
|
||||
const QByteArray xdgCurrentDesktop = qgetenv("XDG_CURRENT_DESKTOP");
|
||||
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
|
||||
if (!qEnvironmentVariableIsEmpty("KDE_FULL_SESSION"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user