Bug 481624

Summary: Icons-only Task Manager fails to display custom Actions properly
Product: [Plasma] plasmashell Reporter: Sadi <sadiyumusak>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: nate, qydwhotmail
Priority: NOR    
Version First Reported In: 5.27.10   
Target Milestone: 1.0   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Sadi 2024-02-21 12:19:22 UTC
SUMMARY
***
I use the Icons-only Task Manager applet as one of the main components of my desktop and panel layout, displaying not only some frequently used apps but other apps, scripts, etc. in the same category. For instance, adding Elisa with custom Actions to make Kdenlive, Kid3, Subtitle Composer, etc. available in the context menu as well by either pinning or drag-n-drop...
However, this no longer works with some apps: it started first with "System Settings" and then "Elisa".
Another problem that has arisen recently is that when I change custom Actions or even just their order, the context menu of the app icon pinned to the Icons-only Task Manager fails to update for a long time (hours or even days), and I can't figure out how and when it finally decides to update.
***

STEPS TO REPRODUCE
1. Copy the .desktop files "org.kde.discover.desktop", "org.kde.dolphin.desktop", "org.kde.elisa.desktop" and "systemsettings.desktop" to "~/.local/applications/".
2. Add some customs Actions, including other apps in more or less the same category to the newly created local files.
3. Add these apps to the Icons-only Task Manager on a panel either by running and pinning or by drag-n-drop.
4. Next, make some changes like adding, removing some custom Actions, and changing their order.

OBSERVED RESULT
1. Custom Actions added to "org.kde.elisa.desktop" and "systemsettings.desktop" don't take effect after step 3, although they can be seen in the context menu displayed when the .desktop file is right-clicked.
2. Custom Actions in "org.kde.discover.desktop" and "org.kde.dolphin.desktop" are displayed, but changes made later don't take effect promptly after step 4, although they can be seen in the context menu displayed when the .desktop file is right-clicked.

EXPECTED RESULT
1. It should be possible to add custom Actions to all .desktop files even if they include their own default  Actions displayed in the context menu.
2. All changes in the Actions in .desktop files should be reflected in its context menu.

SOFTWARE/OS VERSIONS
Operating System: Debian Trixie/Testing
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Comment 1 Nate Graham 2024-02-21 19:03:13 UTC
After you make your changes in step 4, are you remembering to run `kbuildsycoca5` and then restart Plasma? These steps are required whenever you make manual changes to the .desktop files of any of your apps.
Comment 2 Sadi 2024-02-22 08:22:48 UTC
(In reply to Nate Graham from comment #1)
> After you make your changes in step 4, are you remembering to run
> `kbuildsycoca5` and then restart Plasma? These steps are required whenever
> you make manual changes to the .desktop files of any of your apps.

Oh, sorry, I didn't know that!
It even warns about any errors in .desktop files!
My problem is solved now, thanks.
However, FYI, this problem still exists for "systemsettings.desktop" only, but I've got around it by using "kdesystemsettings.desktop" instead.
Comment 3 Nate Graham 2024-02-22 16:59:14 UTC
Great!