Bug 434874 - System Settings ignores Actions in .desktop file
Summary: System Settings ignores Actions in .desktop file
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: general (other bugs)
Version First Reported In: 5.21.3
Platform: Neon Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-24 11:07 UTC by Sadi
Modified: 2021-10-29 14:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.23
Sentry Crash Report:


Attachments
screenshot of my latest system settings context menu (42.09 KB, image/png)
2021-03-24 11:07 UTC, Sadi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sadi 2021-03-24 11:07:09 UTC
Created attachment 137019 [details]
screenshot of my latest system settings context menu

SUMMARY
System Settings only displays several recently/frequently used Settings, ignoring any Actions in its .desktop file, including the default ones that come with the package.

STEPS TO REPRODUCE
1. Copy "/usr/share/applications/systemsettings.desktop" to "~/.local/share/applications/"
 and add one or two Aactionsdd System Settings to panel or latte-dock
2. Open "~/.local/share/applications/systemsettings.desktop" and go to line: "Actions=kcm-lookandfeel;kcm-users;screenlocker;powerdevilprofilesconfig;kcm-kscreen;"
3. Add "SoftwareCenter;"
4. Append the following lines to the end of the file:
[Desktop Action SoftwareCenter]
Name=Software Center
Icon=plasmadiscover
Exec=plasma-discover
5. After saving, drag and drop the file "~/.local/share/applications/systemsettings.desktop" onto your panel or latte-dock.
6. Right click to display the context menu.

OBSERVED RESULT
The context menu only shows some recently/frequently used Settings (generated automatically), ignoring those in its .desktop file, including the default ones that come with the package.

EXPECTED RESULT
The context menu should show all Actions properly included in the .desktop file as well as any other items generated automatically, like other apps.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.21
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Sadi 2021-03-24 11:12:10 UTC
Sorry for the typo:
in item 1 of "Steps to reproduce")
please replace
"Aactionsdd System Settings to panel or latte-dock"
with
"Actions."
Comment 2 Sadi 2021-04-21 09:02:27 UTC
Unfortunately, the same applies to "firefox.desktop" as well.
This means I have two application launcher icons on my dock/panel which cannot include actions (other apps) from related categories such as System and Internet, which is very handy. ;-)
Comment 3 Nate Graham 2021-10-29 14:25:50 UTC
This was fixed in Plasma 5.23.