@user_none - thanks for taking a look into this again. I tried to just make the changes you suggested, but I don't have a linux box to test it on myself.
@kovid - the problem with open_local_file is that it seems to take just a single filepath as the argument. Whereas I need to launch an app supplying additional arguments. Hence the plugin currently uses subprocess.Popen()