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

            Bug ID: 417316
           Summary: Strange behaviour when XDG_CURRENT_DESKTOP is not set
                    to KDE
           Product: systemsettings
           Version: 5.17.5
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: plasma-b...@kde.org
          Reporter: sgd.or...@gmail.com
  Target Milestone: ---

Created attachment 125773
  --> https://bugs.kde.org/attachment.cgi?id=125773&action=edit
Left: XDG_CURRENT_DESKTOP=KDE (works fine); Middle: XDG_CURRENT_DESKTOP=XFCE
(breaks); Right: QT_QPA_PLATFORMTHEME=qt5ct (breaks)

SUMMARY
First, I am not genuine plasma user.

When I change XDG_CURRENT_DESKTOP to something else then KDE the system
settings will break (theming, style, more qml errors), maybe other kde/plasma
things too.

I usually use qt5ct to manage qt theme which is managed I change by setting
> QT_QPA_PLATFORMTHEME=qt5ct
this also causes the same errors which I write about.
For the sake of my tests I disabled this change by setting this variable to
nothing, which turns qt to some defaults.
With these default when I set XDG_CURRENT_DESKTOP=KDE everything works (well,
there are still some warnings(?) in console from some modules) and looks as it
should.
When I set it to something else (truly whatever, it can be valid DE name or
your custom value, or empty) it breaks as described.
See attachment.

STEPS TO REPRODUCE
1. Set XDG_CURRENT_DESKTOP env variable to anything else apart from KDE
2. Start systemsettings5
3. Open e.g. Display & Monitor section

OBSERVED RESULT
Broken layout, missing parts, broken qml.

EXPECTED RESULT
Properly shown section, all parts present, no additional qml errors.

SOFTWARE/OS VERSIONS
Operating System: Artix Linux 
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.1
Kernel Version: 4.19.98-1-lts
OS Type: 64-bit

ADDITIONAL INFORMATION
I get these logs when running these commands:


> QT_PLATFORM_PLUGIN= XDG_CURRENT_DESKTOP=GNOME QT_QPA_PLATFORMTHEME= 
> systemsettings5 
org.kde.kcoreaddons: Error loading plugin "kcm_kscreen" "The shared library was
not found." 
Plugin search paths are ("/usr/lib/qt/plugins", "/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/Screen.qml:50:
TypeError: Value is null and could not be converted to an object
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/main.qml:28:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/main.qml:27:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/Screen.qml:48:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/Screen.qml:59:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/Screen.qml:57:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/main.qml:116:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/main.qml:116:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/Screen.qml:48:
ReferenceError: units is not defined
org.kde.kcoreaddons: Error loading plugin "kcm_nightcolor" "The shared library
was not found." 
Plugin search paths are ("/usr/lib/qt/plugins", "/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/main.qml:116:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/main.qml:116:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/Output.qml:80:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/Output.qml:90:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/Output.qml:80:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/Output.qml:90:
ReferenceError: units is not defined


> QT_PLATFORM_PLUGIN= XDG_CURRENT_DESKTOP=KDE QT_QPA_PLATFORMTHEME= 
> systemsettings5 
org.kde.kcoreaddons: Error loading plugin "kcm_kscreen" "The shared library was
not found." 
Plugin search paths are ("/usr/lib/qt/plugins", "/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
org.kde.kcoreaddons: Error loading plugin "kcm_nightcolor" "The shared library
was not found." 
Plugin search paths are ("/usr/lib/qt/plugins", "/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set


> QT_PLATFORM_PLUGIN= XDG_CURRENT_DESKTOP=KDE QT_QPA_PLATFORMTHEME=qt5ct 
> systemsettings5 
qt5ct: using qt5ct plugin
qt5ct: D-Bus global menu: no
org.kde.kcoreaddons: Error loading plugin "kcm_kscreen" "The shared library was
not found." 
Plugin search paths are ("/usr/lib/qt/plugins", "/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/Screen.qml:50:
TypeError: Value is null and could not be converted to an object
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/main.qml:28:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/main.qml:27:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/Screen.qml:48:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/Screen.qml:59:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/Screen.qml:57:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/main.qml:116:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/main.qml:116:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/Screen.qml:48:
ReferenceError: units is not defined
org.kde.kcoreaddons: Error loading plugin "kcm_nightcolor" "The shared library
was not found." 
Plugin search paths are ("/usr/lib/qt/plugins", "/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/main.qml:116:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/main.qml:116:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/Output.qml:80:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/Output.qml:90:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/Output.qml:80:
ReferenceError: units is not defined
file:///usr/share/kpackage/kcms/kcm_kscreen/contents/ui/Output.qml:90:
ReferenceError: units is not defined

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

Reply via email to