Ubuntu – Passing %F to terminal application in .desktop launcher

command lineconsoledesktopgnomelauncher

Some console editors can open multiple files at ones – for example

nano file1 file2

will launch nano with two "tabs".

But .desktop launcher with

Terminal=true
Exec=nano %F

will open two console windows with two instances of nano, each with one single file opened.

How to make .desktop pass multiple files to single-instance console application as parameters? Preferably as one-liner which can be used in Exec=... field of .desktop file.

Update:
This behaviour tends to be gnome-specific, in KDE it "just works" with:

Exec=nano %F

Best Answer

This is a bug. Opening a bunch of files with "open with another app" works totally different then opening them in default app. (can't accept my own answer for a while)