Skip to content

Hyprshot returns exit code 1 for both success and failure #129

@GhostVox

Description

@GhostVox

hyprshot currently returns exit code 1 in both success and failure cases, which breaks Unix conventions and makes it difficult to programmatically detect whether a screenshot was taken successfully.
Expected behavior: Exit code 0 on success, non-zero on failure (standard Unix convention)
Current behavior: Exit code 1 always
Impact: Scripts that want to take action on success/failure need to parse output instead of using standard exit code checking.
Use case: I wanted to add a sound effect on successful screenshots, but had to work around this by checking for empty output instead of exit codes.
I have Provided a image below :
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions