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

            Bug ID: 407963
           Summary: plasma-integration QSystemTrayIcon default status
                    differs from qt5 implementation
           Product: plasma-integration
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: plasma-b...@kde.org
          Reporter: palacio.torres.da...@gmail.com
  Target Milestone: ---

The default status for a status notifier icon QSystemTrayIcon object is
"Active" in Qt5. The code path that sets it is implemented as a Qt5 platform
theme as seen in
qtbase/src/platformsupport/themes/genericunix/dbustray/qdbustrayicon.cpp
While there is no API to set the status available to Qt programmers, the
default implementation sets it to "Active" multiple times, including at
creation time. The visible result of this should be that the application tray
icon is visible in Plasma's system tray. When running inside a Plasma session,
however, the default icon status is "Passive". This happens because the plasma
platform theme integration plugin overrides the default behavior. Removing the
plasma integration plugin or setting QT_QPA_PLATFORMTHEME=gtk3 for a qt5
application makes its tray icon visible by default in Plasma's system tray.

Test case:
1. Run a QSystemTrayIcon based qt5 application in a Plasma session. The tray
icon will be hidden.
2. Remove plasma-integration or set QT_QPA_PLATFORMTHEME=gtk3 and run the test
application again. The tray icon will be visible.
Test program source: https://github.com/dpalacio/systemtray-test

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

Reply via email to