diff options
-rw-r--r-- | vcl/unx/generic/desktopdetect/desktopdetector.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/generic/desktopdetect/desktopdetector.cxx b/vcl/unx/generic/desktopdetect/desktopdetector.cxx index 3c8f8bfdb218..8135164c44aa 100644 --- a/vcl/unx/generic/desktopdetect/desktopdetector.cxx +++ b/vcl/unx/generic/desktopdetect/desktopdetector.cxx @@ -271,7 +271,7 @@ static bool is_kde5_desktop( Display* pDisplay ) { static const char * pFullVersion = getenv( "KDE_FULL_SESSION" ); static const char * pSessionVersion = getenv( "KDE_SESSION_VERSION" ); - if ( pFullVersion && pSessionVersion && strcmp(pSessionVersion, "5") ) + if ( pFullVersion && pSessionVersion && strcmp(pSessionVersion, "5") == 0) return true; if ( KDEVersion( pDisplay ) == 5 ) |