https://bugs.kde.org/show_bug.cgi?id=350785

Sven Brauch <m...@svenbrauch.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |m...@svenbrauch.de

--- Comment #5 from Sven Brauch <m...@svenbrauch.de> ---
The code which "triggers" this bug is in qgenericunixservices.cpp in Qt. I'll
just paste it here for future reference:

static inline QByteArray detectDesktopEnvironment()
{
    const QByteArray xdgCurrentDesktop = qgetenv("XDG_CURRENT_DESKTOP");
    if (!xdgCurrentDesktop.isEmpty())
        return xdgCurrentDesktop.toUpper(); // KDE, GNOME, UNITY, LXDE, MATE,
XFCE...

    // Classic fallbacks
    if (!qEnvironmentVariableIsEmpty("KDE_FULL_SESSION"))
        return QByteArrayLiteral("KDE");
    if (!qEnvironmentVariableIsEmpty("GNOME_DESKTOP_SESSION_ID"))
        return QByteArrayLiteral("GNOME");

    // Fallback to checking $DESKTOP_SESSION (unreliable)
    const QByteArray desktopSession = qgetenv("DESKTOP_SESSION");
    if (desktopSession == "gnome")
        return QByteArrayLiteral("GNOME");
    if (desktopSession == "xfce")
        return QByteArrayLiteral("XFCE");

    return QByteArrayLiteral("UNKNOWN");
}

Check if you have KDE_FULL_SESSION set, or XDG_CURRENT_DESKTOP set to KDE. If
that is the case, then the KDE platform integration is loaed which triggers
this issue.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to