Flameshot: Add option to exit after screenshot

Created on 23 Jun 2018  路  15Comments  路  Source: flameshot-org/flameshot

I rarely take screenshots so I don't need flameshot to linger around after the screenshot has been saved/uploaded/copied to clipboard. Also starting time from flameshot gui is no issue at all. So an option to have it exit itself after a screenshot is done would be awesome.

Enhancement discussion

Most helpful comment

All 15 comments

This could be implemented but take in consideration that if you close Flameshot after copying a something into the clipboard, you wont be able to paste it. The original process needs to be running.
This is the main reason for Flameshot to keep running in the background as RAM is pretty cheap these days.

Oh, that makes sense. Although I could swear gnome-screenshot closes after selecting "Clipboard" and I can still paste it into apps. Maybe you can add something like "auto-close xx minutes after capture" or wait for a paste event and close shortly after that. (And while RAM for current machines may be cheap, it is the opposite if you have an old PC or impossible with a Raspberry Pi.)

I'l try to check Gnome's screenshot tool source code and see what they do to solve the issue. Thanks for the suggestion.

I join this request.

Here's my point: I doesn't matter if RAM is chap or not these days, open source is all about choices.
@lupoDharkael your screenshot tool really is a gem, I'm using it as my primary (switched from scrot because of the editing options) but I'd really appreciate an option to auto close the app once it has done its job.

Regarding RAM usage here's an example: I use A LOT of Firefox tabs for work, I have Skype running, Wire, Spotify, etc. They do use a lot of RAM (fk electron). Due to the nature of the apps I need those running but not your screenshot tool, that one I can call whenever needed.
A screenshot tool souldn't be running all the time (at least in my opinion) and that's why I used scrot, so I'd really like a simple switch kinda **flameshot [arguments] -k [other-options]
that kills flameshot process after the actual screenshot's been taken, that way people who want it running can call it without -k just as it is right now, and people like us can call the tool with the -k for one-time use, it's a win-win :-)

Just like @mbirth said, I don't care much about launch time, it's trivial compared to a screenshot tool using ~35MB of my RAM all the time without any need or choice. If all apps would behave like this I'd need 16GB of RAM just by launching the basic ones hahah

If you are using a clipboard manager, closing the copy source application shouldn't be an issue. Most of them implement a copy history, which persists copied contents after an application was closed. That is propably why it works in gnome (it uses gsd-clipboard).

https://en.m.wikipedia.org/wiki/Clipboard_manager

Yes, don't make sense the process running without use it, the clipboard manager approach could be better. Thanks for awesome app!

I would like to join the request as well. Something like flameshot gui --kill would do the trick for me as I have mapped this command to the Printscr key in system config.
Also, in Gnome, when you copy something to clipboard from the browser, then close the browser, the copied content is still there (I assume this is what @tobias-haenel explained).

I also take my Vote for this feature.

My dirty solution is:
flameshot gui & sleep 30; kill $(ps aux | awk '/[f]lameshot/ {print $2}')

But don't work on Gnome shortcut, only terminal.

Any updates on this? Flameshot is awesome but I don't want to keep it running all the time. I already have cinnamon with csd-clipboard eating 22M of memory, I'd like to not also keep flameshot (which is eating 82M, for a moment).
Thanks.

Implemented in cbb4727

Does it use the desktop clipboard manager to save the snapped image before it exits?

Any ETA on a next release that will include this functionality?

@brianjmurrell I have made a patch that saves it to xclip clipboard manager in #559 , so you dont lose your image after adding this...

So does that mean that the answer to my question is _no, the snapped image is not saved to the desktop clipboard manager and lost when flameshot exits with the option in this PR enabled_?

If so, that would seem to neuter much of the usefulness of this option.

@brianjmurrell as far as I know, that is true yes.

I think this request to close after one shot is very important and useful. I wanted to map it to my printscr button but I don't want it to stay around after taking the screenshot. So the lack of this feature is blocking me from making it my primary screenshot application at the moment.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xstable picture xstable  路  3Comments

orschiro picture orschiro  路  3Comments

sephore picture sephore  路  3Comments

kylewill picture kylewill  路  4Comments

hosiet picture hosiet  路  4Comments