Bug 365626

Summary: Can't drag and drop files from Dolphin to programs on the task manager
Product: [Plasma] plasmashell Reporter: KDE Neon user <emailmeat>
Component: Task Manager and Icons-Only Task ManagerAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED FIXED    
Severity: wishlist CC: kde, plasma-bugs
Priority: NOR    
Version: 5.7.1   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: 5.8.0

Description KDE Neon user 2016-07-13 17:10:14 UTC
I assume that this feature already existed, since while holding the mouse down to drag a file, it shows a green icon when I hover an appropriate program. However, nothing happens.

Reproducible: Always

Steps to Reproduce:
1. Create a text file
2. Try to drag and drop it to Firefox or Kate


Actual Results:  
Nothing happens, even though the badge changes to a green icon, as a sign that it is possible to drag the file to those programs.

Expected Results:  
It should be possible to drag and drop files to programs that support viewing or editing them. 

If this feature never existed before, please move this issue to the wishlist. This is a feature that has existed for a long time on Windows and I miss it.
Comment 1 KDE Neon user 2016-07-13 17:12:02 UTC
Step 2 should read: "Try to drag and drop it to Firefox or Kate entries on the task manager".
Comment 2 Eike Hein 2016-07-14 07:43:52 UTC
This is indeed a missing feature. However I agree it should be implemented. I'm currently very preoccupied with bugfixing work, so it might take a while.
Comment 3 Kai Uwe Broulik 2016-08-10 08:24:35 UTC
I'll look into this.
Comment 4 KDE Neon user 2016-08-10 13:52:38 UTC
Thank you, Kai!
Comment 5 Kai Uwe Broulik 2016-08-12 10:46:34 UTC
Git commit 56a21fe0ec121059fb8d59b6ad68be8a9022ec44 by Kai Uwe Broulik.
Committed on 12/08/2016 at 10:45.
Pushed by broulik into branch 'master'.

[Task Manager] Allow dropping files onto tasks

This allows to drop files onto entries in the task manager.
Both single and multiple files are supported.

When all dropped items are desktop files for applications, such as dragging apps
from Kickoff, a launcher is created for each item.
Otherwise the application is launched with those URLs as arguments and behavior
depends on the application. It might open the file(s) in new tab(s) of an existing
instance, open a new window with tabs, open new windows for each files, etc.
FIXED-IN: 5.8.0

Differential Revision: https://phabricator.kde.org/D2392

M  +4    -2    applets/taskmanager/package/contents/ui/MouseHandler.qml
M  +25   -1    applets/taskmanager/package/contents/ui/main.qml
M  +29   -13   applets/taskmanager/plugin/backend.cpp
M  +5    -1    applets/taskmanager/plugin/backend.h

http://commits.kde.org/plasma-desktop/56a21fe0ec121059fb8d59b6ad68be8a9022ec44