Bug 451931 - Pinned icons ignore custom program's paths, and duplicated icons when fixed on the panel from the menu.
Summary: Pinned icons ignore custom program's paths, and duplicated icons when fixed o...
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (other bugs)
Version First Reported In: 5.24.3
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-26 14:33 UTC by paninomaninodesu
Modified: 2023-01-28 11:43 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description paninomaninodesu 2022-03-26 14:33:31 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. edit a program's path and fix it on the panel
2. start the program
3. 

OBSERVED RESULT
the icon is duplicated on the panel and the program's path is lost

EXPECTED RESULT
there should be only one icon on the panel when the program opens and it should be started with the custom path you edited on the menu


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Neon
(available in About System)
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
I was struggling with video acceleration on Vivaldi/Chromium, I tried to improve it adding some lines to the program's path. The trick works, but I discovered "a bug" on the Panel.

If I open Vivaldi using the Menu it works: https://i.imgur.com/XAwXlDU.jpg
If I open Vivaldi using the pinned icon on the panel it doesn't work: https://i.imgur.com/q90Tyyw.jpg

I thought that it was just because the path on the pinned icon is not updated, but it goes a bit beyond that. 
I removed the pinned icon, went to the menu, right click on Vivaldi and "fix to the panel".
When I opened it Vivaldi using this newly fixed/pinned icon not only that custom path was not used it also duplicated the icon on the menu: https://i.imgur.com/Di3hruf.jpg

To prevent this I have to open Vivaldi first and then click on the open icon and pin to the Panel.
But defeats the purpose of having Vivaldi pinned to the bottom when I have to start it from the Menu for those flags to work.
Comment 1 Nate Graham 2022-03-26 15:42:01 UTC
> I tried to improve it adding some lines to the program's path
How exactly did you do this?
Comment 2 paninomaninodesu 2022-03-26 19:06:18 UTC
(In reply to Nate Graham from comment #1)
> > I tried to improve it adding some lines to the program's path
> How exactly did you do this?

Here: https://i.imgur.com/mRe2ihn.jpg

(It's hard to express myself correctly to make bug reports, with the added dificulty that all the interface is translated)
Comment 3 Nate Graham 2022-03-31 19:59:34 UTC
I see, thank you.
Comment 4 Fushan Wen 2023-01-28 11:43:09 UTC
Need to set `StartupWMClass` in the desktop file to match Vivaldi window's class name.