Bug 423704

Summary: Pinned applications do not remember the command line parameters used to initially open them
Product: [Unmaintained] lattedock Reporter: Timur Tabi <timur>
Component: applicationAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED UPSTREAM    
Severity: minor    
Priority: NOR    
Version First Reported In: 0.9.11   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Timur Tabi 2020-06-30 15:33:51 UTC
I opened the print queue for my printer, and an icon for kde-print-queue was added to the dock.  I pinned that icon and then closed kde-print-queue.

If I now click on the kde-print-queue icon, it doesn't open because lattedock only remembers the executable name (kde-print-queue) and not the parameter that was used to launch it ("EPSON_WF_3640_Series").

In addition, lattedock does not give me any options to modify the launcher in lattedock, so I can't "add" the command line parameter.

My only option is to manually create a .desktop file and drag that file to lattedock.
Comment 1 Timur Tabi 2020-06-30 16:34:45 UTC
Actually, dragging a .desktop file to lattedock has its own problems.  When I click on that icon, it does correctly launch the application.  But then that application creates a second icon on lattedock.
Comment 2 Michail Vourlakos 2020-06-30 21:26:00 UTC
Latte is using Plasma for its launchers, how do you solve this with Plasma taskmanagers?
Comment 3 Timur Tabi 2020-07-01 03:38:07 UTC
I don't know how Plasma taskmanager works, but maybe Latte and/or Plasma could look up the process info when the process icon is being pinned, and then plasma/latte could just remember the parameters being passed.
Comment 4 Michail Vourlakos 2020-07-01 04:54:17 UTC
Sorry this is not Latte responsibility, you need to find a way with plasma devs or you just edit the desktop file to include your parameters.