When a non KIO friendly program opens a non local file, the file is copied to an user temporary folder by kioexec.
Watch any creation or modification of that temporary file, because some programs delete the old file and create a new one when saving the file. When the file is modified, the user is asked if he/she wants to upload the modified file.
Included two new dbus calls:
*to watch the temporary files, and keeping what application and how many times has been launched.
*to unwatch the files, and to avoid deleting the files too early in case of immediate exit of the applications, for example because it opens the file in a new tab, use a counter of the times the application is executed, and only delete the temporary files and directories when the application really exists (counter == 0).
Delete recursively the temporary directories and any file they could have, so no temporary directories with backup files are left.
BUG: 397742