Bug 423704 - Pinned applications do not remember the command line parameters used to initially open them
Summary: Pinned applications do not remember the command line parameters used to initi...
Status: RESOLVED UPSTREAM
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: 0.9.11
Platform: Kubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-30 15:33 UTC by Timur Tabi
Modified: 2020-07-01 04:54 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.