<table><tr><td style="">jtamate edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-qxhvahay4h6vqw4/">(Show Details)</a><br />jtamate edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-adrbejaosafbxlj/">(Show Details)</a>
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D15180">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>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<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">,</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">.</span> When the file is modified, the user is asked if he/she wants to upload the modified file.<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"><br />
</span><br />
Included two new dbus calls:<div style="padding: 8px 0;">...</div> *to unwatch the files, and to avoid deleting the files too early in case of immediate exit of the applications, for example because <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">they</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">it</span> open<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">s</span> the file in a new tab, use a counter of the <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">files on</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">times th</span>e application <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">has opened</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">is executed</span>, and only delete the temporary files and directories when the application really exists<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> (counter == 0)</span>.<div style="padding: 8px 0;">...</div></div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;">Tested logging out and in several times and opening two or three remote files with xed and libreoffice.<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"><br />
<br />
For example with 2 files, the first time the app is called it opens the file and doesn't end (app count = 1), the second file is opened (app count = 2) and the app exists immediately (app count = 1). Only when the app exits the app count == 0 and the temporary directories are deleted.<br />
</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15180">https://phabricator.kde.org/D15180</a></div></div><br /><div><strong>To: </strong>jtamate, Frameworks, broulik, ngraham, dfaure<br /><strong>Cc: </strong>elvisangelaccio, kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>