On Linux there is a standard related with desktop interactions and configuration. The standard describes, among other things, .desktop files. Important thing to remember when editing these files by hand (as I have done recently) is that when you want to pass multiple files as an argument to an app in “Exec” line, you have to give %F as an argument, like so:
Exec=coolapp %F
See The Exec key on standards.freedesktop.org.