Bug 434311

Summary: Edited Favorite Menu Item Doesn't Reflect The Change
Product: [Plasma] plasmashell Reporter: vindicator <nroycea+kde>
Component: Application Menu (Kicker) widgetAssignee: J <oslazu>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bugseforuns, nate, oslazu, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.21.2   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description vindicator 2021-03-12 07:36:09 UTC
SUMMARY


STEPS TO REPRODUCE
1. Add a menu program item as a favorite.
2. Edit the "favorite" item properties. Application->Command (to some other program or even something that doesn't exist). Save it (ok).
3. Launch that edited favorite.

OBSERVED RESULT
"Favorite" program launched using the previous command.


EXPECTED RESULT
"Favorite" program should be launched with the new edited command.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Archlinux
(available in About System)
KDE Plasma Version: 5.21.2
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I encountered this when launching a script in the "command" field.

It was a script which added "nice" and "ionice" but is no longer needed since the previous bug I reported was fixed.

I changed that "command" field to the correct/original program/script and removed the old/unneeded script.

journalctl showed that when I launched the "favorite" program, it was still looking for the script that was removed/deleted.

But when I go to the program in the menu (either typed or in All Programs), the correct program is launched.

After removing the program from "Favorites" and adding it back, it launched using the correct "command".
Comment 1 vindicator 2021-03-12 07:37:57 UTC
I should add that the "command" change IS reflected in the sense that if you go back to that field in "properties", it'll show the change, but it is still launched with the previous command.
Just not sure how best to title it accurately.
Comment 2 J 2021-03-12 21:05:46 UTC
Hi

Thank you for submitting a bug report, I am part of the Bugsquad and not a maintainer.

STEPS REPRODUCED:
Added 2 programs to my favourites (Gwenview and Kcalc).

Edited the properties by > Right Click  > Edit Application > Applications tab

Added libre office --writer to Gwenview and Gwenview to Kcalc in the command box and hit save.

Launched both the newly edited applications from favourites.


RESULTS:
The newly edited programs saved in favourites both open and run the original application command, Gwenview would open Gwenview and Kcalc would open Kcalc.

But as stated when opening both programs fresh and not from the favourites tab they open the programs I have set them via the command field.

The only way for them to work as intended it to set the command field before hand and then pin it to the favourites tab, thus when opened it will then run the desired application/command set.

CONCLUSION:
The issue can be reproduced.

SOFTWARE/OS VERSIONS:

Operating System: Fedora 33
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Comment 3 Patrick Silva 2021-06-02 12:23:57 UTC
bug 405790 seems related
Comment 4 Nate Graham 2023-09-19 20:13:28 UTC

*** This bug has been marked as a duplicate of bug 405790 ***