Skip to content

flameshot gui exits with 0 on abort #3321

@cyqsimon

Description

@cyqsimon

Flameshot Version

Flameshot v12.1.0 (-)
Compiled with Qt 5.15.5

Installation Type

Linux, MacOS, or Windows Package manager (apt, pacman, eopkg, choco, brew, ...)

Operating System type and version

EndeavourOS, Linux 6.4.12-arch1-1 x86_64

Description

I was trying to use flameshot in scripting, and was surprised to find that flameshot gui does not exit with non-zero status when user aborts. This makes scripting quite a bit more annoying.

The behaviour I expected is to exit with 1 (or whatever) on abort.

Steps to reproduce

  1. Run flameshot gui in terminal
  2. Hit esc to abort
  3. Run echo $?, notice that the status is 0

Screenshots or screen recordings

No response

System Information

Operating System: EndeavourOS
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10
Kernel Version: 6.4.12-arch1-1 (64-bit)
Graphics Platform: X11

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIt's a bugCLICLI specificGood first issueIssues labeled as such are a good way to get use to the codebase. Ask for help if needed.ReproducedThe reported issue was reproduced in a clean VM

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions