Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically remove screenshots from current session when close Shutter #619

Open
ahplaza opened this issue Sep 18, 2023 · 3 comments
Open
Labels
bug Something isn't working

Comments

@ahplaza
Copy link

ahplaza commented Sep 18, 2023

Hello, I don't remember which version of Shutter I was using. But on the last week I installed version 0.99.2 after updated the OS and I'm missing a feature.

Before the update, when I closed Shutter all the screenshots I made are automatically removed (I can't remember if they went to the Trash or entirely removed). But now after I started it again the old screenshots are still present.

I can see that is due to the files are stored at .cache/shutter/unsaved. I only want to save the screenshots I desired since most of the time I copy and paste them to other places on the fly. Is there a way to automatically delete them like before?

Thank you for the support.

@ahplaza ahplaza added the question Question about installing, configuring or using Shutter label Sep 18, 2023
@Photon89
Copy link
Member

Could you please check what the setting is in Edit > Preferences > General > Save?

@ahplaza
Copy link
Author

ahplaza commented Sep 19, 2023

It's set to not automatically save, as I want.

@Photon89
Copy link
Member

I had a look into it. Shutter checks whether an unsaved screenshot got a key. If not, it is getting deleted. Looks like unsaved screenshots do get a key, so they are not getting deleted. Now I'm not sure how to proceed with it. Either don't check for a key, just remove all unsaved screenshots, or don't assign keys to unsaved screenshots. I'm not sure why there are two things characterizing the screenshot's status: saved/unsaved and has key/has no key. Seems redundant to me...

The check is at

unless (fct_get_key_by_filename($unsaved_file)) {
if anyone wants to dig deeper.

@Photon89 Photon89 added bug Something isn't working and removed question Question about installing, configuring or using Shutter labels Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants