flameshot-org / flameshot

Powerful yet simple to use screenshot software :desktop_computer: :camera_flash:
https://flameshot.org
GNU General Public License v3.0
24.68k stars 1.58k forks source link

Open in default application #3137

Open LordMZTE opened 1 year ago

LordMZTE commented 1 year ago

Feature Description

It would be great if there was a way to make the "Open in app" button run a command set in the config without showing a popup.

mmahmoudian commented 1 year ago

I don't know what the usecase can be. You want your screenshot to be piped to some script or command, right? If so, why don't you use the CLI?

https://flameshot.org/docs/advanced/commandline-options/

LordMZTE commented 1 year ago

Using the CLI would be an option, but then I'd have to assign a seperate shortcut for running that command. Ideally, I'd have all the usual options, like copying to the clipboard, saving as a file and so on as well as a button for opening it in an application with one click, and no popup.

mmahmoudian commented 1 year ago

Thanks for the explanation. I think this is exactly what a plugin is for. So you should wait until the plugin system is implemented. You can follow the progress in #2529

You might want to implement this via dmenu/rofi. You can find an example here:

https://codeberg.org/mehrad/dmenu_shot