Drag and drop of multiple files to an application launcher?

Hello there!

What I’m trying to do is launch an application (GZDoom) by dragging and dropping the files I want it to launch with onto its application launcher, which I’ve placed on the icons-only task manager for easy access. Under Windows, this would launch gzdoom’s internal launcher with said files prepared, but under Plasma instead a copy launches for each of the file dragged, which isn’t quite what I’m after. :slightly_smiling_face:

Is there a way to replicate the behaviour I’m used to from under Windows in Plasma, or am I better off learning a 3rd-party gzdoom launcher instead?

Thanks in advance!

You can achieve this by associating your application with the file types and by specify in a .desktop file that the program can have input parameters.

For instance in kate:

It has:

Exec=kate -b %U

Where %U is replaced by urls that are passed to this launcher. (the -b has no importance)

And

MimeType=text/plain;inode/directory;

Says kate can open text files and directories.
This isn’t necessary for your use-case, but it will make dolphin be able to know this application can open those files.

You can put the .desktop file in ~/.local/share/applications

This follows the desktop entry format.

2 Likes