Bug 346055 - Dragging applications to the task manager
Summary: Dragging applications to the task manager
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: 5.2.2
Platform: Kubuntu Linux
: NOR minor
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-10 21:52 UTC by Pedro Albuquerque Santos
Modified: 2015-05-12 15:52 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro Albuquerque Santos 2015-04-10 21:52:28 UTC
On KDE Plasma 4 I could drag applications from the Kickoff menu to the task manager to show them even when not running. This worked not only with the regular task manager, but also with the Icons-only task manager, which is the one I use. On KDE Plasma 5 dragging applications from Kickoff does nothing. They are dragged but then you can't drop them on the task manager to make them show up there.

I consider this to be a regression. And yes, there is a "kind of" an workaround. You have to first launch the application before you add it to your task manager. But I find this limitation clumsy and undesirable. It is a regression from the behavior present on the KDE Plasma 4 series. Could you please fix it?

Reproducible: Always

Steps to Reproduce:
1. Search for an application on the Kickoff menu
2. Drag the application from the Kickoff menu to the task manager
3. Drop it on the task manager

Actual Results:  
Nothing happens. The action has no effect.

Expected Results:  
A launcher for the dropped application should be added to the task manager.

I'm running Kubuntu 15.04 Vivid Vervet with KDE Plasma 5.2.2
Comment 1 Eike Hein 2015-04-10 22:12:35 UTC
As a workaround, you can also right-click applications in the Application Menu (Kicker) widget and click "Add as Launcher" in the context menu.
Comment 2 Pedro Albuquerque Santos 2015-04-10 22:17:24 UTC
(In reply to Eike Hein from comment #1)
> As a workaround, you can also right-click applications in the Application
> Menu (Kicker) widget and click "Add as Launcher" in the context menu.

Thanks for the reply. If that worked I would already be mostly pleased. However, I only have the option to add a program as favorite. There's no option to add it as launcher.
Comment 3 Eike Hein 2015-04-10 22:18:45 UTC
"Add as Launcher" only works if a compatible Task Manager (the bundled ones are, of course) is found in the same panel. If widgets are unlocked "Add to Panel" and "Add to Desktop" also become available.
Comment 4 Pedro Albuquerque Santos 2015-04-10 22:23:45 UTC
I tested with the default Task Manager and with the Icons-only Task manager, and the options you mentioned are not showing up.

I don't now if this may, or may not, be related to KDE Plasma packaging on Kubuntu 15.04 or if it is a  general problem. However, I think that if it indeed a general problem, maybe it's better to open a new bug just for that,
Comment 5 Eike Hein 2015-04-10 22:24:27 UTC
Note that Application Menu (Kicker) is distinct from Application Launcher (Kickoff). The former is not the default, but generally more capable.
Comment 6 Pedro Albuquerque Santos 2015-04-10 22:26:55 UTC
(In reply to Eike Hein from comment #5)
> Note that Application Menu (Kicker) is distinct from Application Launcher
> (Kickoff). The former is not the default, but generally more capable.

My apologies! I was using Kickoff instead of Kicker. Kicker shows up those options. Shouldn't Kickoff do the same?
Comment 7 Eike Hein 2015-04-10 22:36:37 UTC
^ That would be nice, especially since Kicker 5.3 added even more features like per-application recent documents. I'm hoping to find the time to basically throw out the code behind Kickoff and port the Kickoff UI to Kicker's backend.

As for the actual bug here, this regression was introduced in KDE 4.11 originally (for the Task Manager). It's not hard to fix, if the git version of Qt didn't decide that today would be an excellent time to start crashing during DND ...
Comment 8 Eike Hein 2015-04-10 23:02:34 UTC
Git commit 6adfb466d1322feaec8352a477313982de496097 by Eike Hein.
Committed on 10/04/2015 at 23:02.
Pushed by hein into branch 'master'.

Add launcher when DND'ing an app from launcher menus to the Task Manager.

M  +10   -1    applets/taskmanager/package/contents/ui/MouseHandler.qml
M  +0    -1    applets/taskmanager/package/contents/ui/Task.qml
M  +1    -0    applets/taskmanager/package/contents/ui/main.qml
M  +14   -0    applets/taskmanager/plugin/backend.cpp
M  +1    -0    applets/taskmanager/plugin/backend.h

http://commits.kde.org/plasma-desktop/6adfb466d1322feaec8352a477313982de496097
Comment 9 Hrvoje Senjan 2015-04-14 19:57:39 UTC
Eike, is the fix wanted in 5.3 also?
Comment 10 Eike Hein 2015-04-14 20:19:52 UTC
^ No, this is a new feature.
Comment 11 Pedro Albuquerque Santos 2015-05-12 15:48:58 UTC
So this will only be present on 5.4, right? Not before it.
Comment 12 Eike Hein 2015-05-12 15:52:15 UTC
Yep.