Status icon is broken in KDE Plasma 5

Bug #1687825 reported by tankmissile
42
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Variety
Fix Released
Medium
Unassigned

Bug Description

When starting variety in KDE Plasma, clicking the status bar icon does not bring up the menu. The icon also looks blurry (probably incorrect sizing or theme).

KDE Plasma now has a D-Bus message system that can be accessed through the qdbus command. The wallpaper can be changed using the command below. However, it only works when widgets are unlocked. There's some kind of security vulnerability if widgets are locked.

qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript "
var allDesktops = desktops();
for (i=0; i < allDesktops.length; i++) {
    d = allDesktops[i];
    d.wallpaperPlugin = 'org.kde.image';
    d.currentConfigGroup = Array('Wallpaper', 'org.kde.image', 'General');
    d.writeConfig('Image', 'file://"$WP"')
}
"

When the set_wallpaper script is generated, it can not be edited due too invalid characters. I was able to scrub the script clean myself, but it's still a nuisance too new users.

description: updated
summary: - Status bar menu not working in KDE Plasma + Use QDbus for script +
+ Status bar menu not working in KDE Plasma + Use qdbus for script +
set_wallpaper script generating with invalid characters
Revision history for this message
James Lu (jlu5) wrote :

Hi,

The invalid characters error should be fixed by the latest revision (590, https://bazaar.launchpad.net/~variety/variety/trunk/revision/590).

Regarding the Variety indicator, I can't get it to display at all in Plasma 5.8; nor does wallpaper changing appear to work. Changing the wallpaper via qdbus does seem like the right solution, though it's a new feature that's only in Plasma 5.7 and above AFAIK: https://github.com/KDE/plasma-workspace/commit/903cbfd7e267a4812a6ec222eb7e1b5dd775686f

In the future, please consider reporting multiple bugs instead of combining several different issues into one thread, as it makes bug management a lot easier for us :)

summary: - Status bar menu not working in KDE Plasma + Use qdbus for script +
- set_wallpaper script generating with invalid characters
+ Wallpaper setting + status icon are broken in KDE Plasma 5
Changed in variety:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
tankmissile (tankmissile) wrote : Re: Wallpaper setting + status icon are broken in KDE Plasma 5

Apologies for not splitting up these issues. I thought they were insignificant enough to be combined into one, but from a development standpoint I see your point. Anyway, I have an update on the status bar issue. It can be solved by installing libappindicator-gtk3 (if you use Arch Linux).

Revision history for this message
Peter Levi (peterlevi) wrote :

"Hi Peter,

I'm just writing to let you know that last year KDE finally came
through. It is now possible to change the wallpaper via dbus, including
via the command line. More details are in the KDE bug which is linked
from your web page, but this is the shell command to change the
wallpaper on all desktops:

qdbus org.kde.plasmashell /PlasmaShell
org.kde.PlasmaShell.evaluateScript 'var allDesktops = desktops();print
(allDesktops);for (i=0;i<allDesktops.length;i++) {d =
allDesktops[i];d.wallpaperPlugin = "org.kde.image";d.currentConfigGroup
= Array("Wallpaper", "org.kde.image", "General");d.writeConfig("Image",
"file://'"$FILE"'")}'

Be well,

Ian Turner"

Changed in variety:
importance: Medium → High
James Lu (jlu5)
Changed in variety:
status: Triaged → In Progress
assignee: nobody → James Lu (tacocat)
Revision history for this message
James Lu (jlu5) wrote :

I've committed the qdbus wallpaper changing code into trunk: https://bazaar.launchpad.net/~variety/variety/trunk/revision/607

The status icon problems still need investigation.

Changed in variety:
assignee: James Lu (tacocat) → nobody
James Lu (jlu5)
Changed in variety:
milestone: none → 0.6.6
Revision history for this message
Peter Levi (peterlevi) wrote :

Thanks, James.

Cannot test on KDE - is qdbus fix fully confirmed working? Are KDE users now supposed to do anything special, or things just work out of the box?

If things just work, there is a related change to remove the KDE-specific instructions from the welcome screens, and there was something in Tips&tricks about KDE too. Also, I can update the instructions on the website to reflect the new situation.

Revision history for this message
James Lu (jlu5) wrote : Re: [Bug 1687825] Re: Wallpaper setting + status icon are broken in KDE Plasma 5

On Plasma 5.7 and later, wallpaper changing should work out of the box.
This is what I've experienced anyhow. In one of the 0.6.6 commits I removed
the KDE 4 tip, but I haven't looked at the welcome screen.

On Sep 19, 2017 8:03 AM, "Peter Levi" <email address hidden> wrote:

> Thanks, James.
>
> Cannot test on KDE - is qdbus fix fully confirmed working? Are KDE users
> now supposed to do anything special, or things just work out of the box?
>
> If things just work, there is a related change to remove the KDE-
> specific instructions from the welcome screens, and there was something
> in Tips&tricks about KDE too. Also, I can update the instructions on the
> website to reflect the new situation.
>
> --
> You received this bug notification because you are subscribed to
> Variety.
> Matching subscriptions: variety bugs
> https://bugs.launchpad.net/bugs/1687825
>
> Title:
> Wallpaper setting + status icon are broken in KDE Plasma 5
>
> Status in Variety:
> In Progress
>
> Bug description:
> When starting variety in KDE Plasma, clicking the status bar icon does
> not bring up the menu. The icon also looks blurry (probably incorrect
> sizing or theme).
>
> KDE Plasma now has a D-Bus message system that can be accessed through
> the qdbus command. The wallpaper can be changed using the command
> below. However, it only works when widgets are unlocked. There's some
> kind of security vulnerability if widgets are locked.
>
> qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript
> "
> var allDesktops = desktops();
> for (i=0; i < allDesktops.length; i++) {
> d = allDesktops[i];
> d.wallpaperPlugin = 'org.kde.image';
> d.currentConfigGroup = Array('Wallpaper', 'org.kde.image',
> 'General');
> d.writeConfig('Image', 'file://"$WP"')
> }
> "
>
> When the set_wallpaper script is generated, it can not be edited due
> too invalid characters. I was able to scrub the script clean myself,
> but it's still a nuisance too new users.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/variety/+bug/1687825/+subscriptions
>

James Lu (jlu5)
summary: - Wallpaper setting + status icon are broken in KDE Plasma 5
+ Status icon is broken in KDE Plasma 5
Changed in variety:
status: In Progress → Triaged
importance: High → Medium
Revision history for this message
James Lu (jlu5) wrote :

Status icon is working for me again in plasmashell 5.13.x and Ayatana indicators 0.5.3

Changed in variety:
status: Triaged → Fix Released
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.