Bug 513367

Summary: save-as always goes to "lastImageSaveAsLocation" even if it's no longer updated
Product: [Applications] Spectacle Reporter: Yi Yang <ahyangyi>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde, nate
Priority: NOR    
Version First Reported In: 24.12.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Yi Yang 2025-12-14 15:43:39 UTC
SUMMARY


STEPS TO REPRODUCE
1. add lastImageSaveAsLocation=file://somewhere
2. open spectacle, save-as, the dialog goes to `somewhere`
3. save the screenshot to `elsewhere`
4. open spectacle again, save-as

OBSERVED RESULT
the dialog *still* goes to `somewhere`

EXPECTED RESULT
the dialog *still* goes to `elsewhere`

ADDITIONAL INFORMATION
The current version of spectacle always saves the save path to `lastImageSaveLocation`, but it still respects recorded `lastImageSaveAsLocation`, causing the unexpected behavior described above.

At least one different user encountered a similar situation on discourse:
https://discuss.kde.org/t/spectacle-not-saving-in-default-folder/42232
Comment 1 Yi Yang 2025-12-14 15:44:26 UTC
The "still" in "expected result" is bogus and resulted from my copy-pasting, ignore it.
Comment 2 Nate Graham 2025-12-15 14:49:08 UTC

*** This bug has been marked as a duplicate of bug 511649 ***
Comment 3 Yi Yang 2025-12-16 15:22:37 UTC
I apologize.

I did look at the "similar issues" list and did not find the other bug though -- will manually search next time.