1 kioexec is launched when the user wants to open a remote file with
2 an application that only supports local files.
4 For this it does the following:
5 - downloads a remote file to a temp location
6 - starts a 'local' application with that temp file as argument
7 - wait fors application to be exited
8 - if the modification time of the file is different from the original one,
9 (because the file was modified) then it offers re-uploading the modified version.
10 This is how you offer network transparency to apps that don't have it.
12 BUT: with KUniqueApplication, this breaks, because the app returns at once,
13 so we have no way to know when the user finished editing the file...
15 Conclusion: if the application has network transparency built-in, it should
16 put "%u" in its desktop file - and kioexec isn't used -. If it doesn't, either
17 it's a KApplication and kiiooexec does its job, or it's a KUniqueApplication
18 and... kioexec can't see modifications to the file. Be warned.
20 From Waldo: "The program doesn't return _at once_. It returns
21 after "newInstance()" returns. So if you open the file there it will still work.
24 David Faure <faure@kde.org>