unity_inspector_get_unity_running improperly returns true on KDE 5.6

Bug #1663747 reported by Thomas Anderson
36
This bug affects 8 people
Affects Status Importance Assigned to Milestone
libunity (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Chromium uses unity_inspector_get_unity_running to determine if close/minimize/maximize buttons are hidden when in a maximized state.
https://cs.chromium.org/chromium/src/chrome/browser/ui/libgtkui/unity_service.cc?rcl=0ddb4374a9221dba28e9ea8a1edaacb32dcc0861&l=124

libunity checks if the com.canonical.Unity Dbus service is created and uses that as the return value for unity_inspector_get_unity_running. (see src/unity-inspector.vala)

KDE Plasma 5.6 supports the unity launcher API and creates a com.canonical.Unity service. Even though unity is certainly not running, UnityInspector thinks it is.

Chromium bug report:
https://bugs.chromium.org/p/chromium/issues/detail?id=594490

KDE bug report:
https://bugs.kde.org/show_bug.cgi?id=360403

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libunity (Ubuntu):
status: New → Confirmed
Revision history for this message
Peter Maciejko (corsseir) wrote :

Do you plan to release any patch for this issue?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.