<table><tr><td style="">ahmadsamir created this revision.<br />ahmadsamir added reviewers: Frameworks, mpyne, dfaure, mardelle.<br />Herald added a project: Frameworks.<br />ahmadsamir requested review of this revision.
</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/D25980">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>In staleMatchesManaged() using toLocalFile() means that it'll fail<br />
for remote files, e.g. fish://user@example.com/home/remote/test.txt .<br />
Use path() instead.</p>
<p>This fixes kautosavefiletest.</p>
<p>Note that running that unit test gives:<br />
KAutoSaveFileTest::test_locking() org.kde.kcoreaddons: Could not lock file: "/home/ahmad/.local/share/stalefiles/qttest/test.txtEQofish_%2Fhome%2FremotexOzeiEQo"</p>
<p>But the same happens when building from commit <a href="https://phabricator.kde.org/R244:88d190934b92dc815eb530bc5f493292b4fe400d" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">88d1909</a>, so it's not related<br />
to the recent changes AFAICS.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>The code compiles and the unit tests pass.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R244 KCoreAddons</div></div></div><br /><div><strong>BRANCH</strong><div><div>l-tolocalfile-path (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25980">https://phabricator.kde.org/D25980</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/lib/io/kautosavefile.cpp</div></div></div><br /><div><strong>To: </strong>ahmadsamir, Frameworks, mpyne, dfaure, mardelle<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns<br /></div>