Bug 425008

Summary: plasmashell : kf5.kio.gui: Failed to register new cgroup
Product: [Plasma] plasmashell Reporter: Aurélien Oudelet (auroud85_fr) <aoudelet>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: kde
Priority: NOR    
Version: 5.19.4   
Target Milestone: 1.0   
Platform: Mageia RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Aurélien Oudelet (auroud85_fr) 2020-08-04 16:43:53 UTC
SUMMARY
Opening application pinned as desktop graphical component leads to failing cgroup creation.

Launching whatever application pinned from a Plasma Panel results of following error:

plasmashell[4397]: kf5.kio.gui: Failed to register new cgroup: "apps-firefox (1)-fe5379b798a3465a9edd978a96bdf64c.scope"
plasmashell[4397]: kf5.kio.gui: Failed to register new cgroup: "apps-org.kde.dolphin (1)-ecac586e193d4319a28402bd0140f494.scope"
plasmashell[4397]: kf5.kio.gui: Failed to register new cgroup: "apps-systemsettings (1)-07939f87e1c24783ba4c0a4dff48361b.scope"

There is a typo error: a space after application name and this: (1) or (2).

Applications launched from Kicker are not affected.
Applications launched from pinned shortcut in Task Manager are not affected.

This is on 5.19.4 Plasma on current Mageia Cauldron.

STEPS TO REPRODUCE
1. Pin an application on panel with right click menu (Add to panel (graphical component))
2. Click on application icon like firefox, dolphin, systemsettings
3. See in journal error.

SOFTWARE/OS VERSIONS
Operating System: Mageia 8
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.72.0
Qt Version: 5.15.0
Kernel Version: 5.7.12-desktop-1.mga8
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-6600K CPU @ 3.50GHz
Memory: 15.6 Gio of RAM
Graphics Processor: GeForce GTX 1660 Ti/PCIe/SSE2
Comment 1 Aurélien Oudelet (auroud85_fr) 2020-08-04 16:49:54 UTC
Misbehaviour :

plasmashell[4397]: kf5.kio.gui: Failed to register new cgroup: "apps-firefox (1)-fe5379b798a3465a9edd978a96bdf64c.scope"
plasmashell[4397]: kf5.kio.gui: Failed to register new cgroup: "apps-org.kde.dolphin (1)-ecac586e193d4319a28402bd0140f494.scope"
plasmashell[4397]: kf5.kio.gui: Failed to register new cgroup: "apps-systemsettings (1)-07939f87e1c24783ba4c0a4dff48361b.scope"


Expected behaviour:

systemd[4209]: Started apps-org.kde.dragonplayer-5a0d91ee62584fd2967953621e529d72.scope.

systemd[4209]: Started apps-systemsettings-adefc010cdc74366a382489c61d4e79d.scope.

No space, no parenthesis on application name scope.
Comment 2 Aurélien Oudelet (auroud85_fr) 2020-08-04 19:53:48 UTC
After further analyze,

There is some desktop files in /$home/.local/share/plasma_icons

Why there is .desktop files here when there is no icons in Plasma's Panel ?

Deleting theses files, and pinning to Panel after some apps, there is no longer bug.

BUT: if I add as duplicate an app, the .desktop file has a space and parenthesis in filename, so the bug is reproduced:

plasmashell[4378]: kf5.kio.gui: Failed to register new cgroup: "apps-firefox (1)-fe5379b46df4469edd978a96bdg58v.scope"
Comment 3 David Edmundson 2020-08-05 08:43:39 UTC
Thanks for noticing. 
There is new escaping on review which hopefully should fix this issue.
Comment 4 David Edmundson 2021-01-28 09:49:16 UTC
This was merged. Please reopen if this is still an issue
Comment 5 Aurélien Oudelet (auroud85_fr) 2021-01-28 17:06:58 UTC
(In reply to David Edmundson from comment #4)
> This was merged. Please reopen if this is still an issue

Many thanks, can you give me the link to commit please?
Best regards,