Skip to content

Crash when trying to gobble terminal that isn't focused #11

@SeerLite

Description

@SeerLite

Describe the bug
If the terminal isn't focused when the new window is opened, gobble crashes leaving the command running in a weird state where the terminal/stdin is shared between the called shell/program and the gobbled command.

To Reproduce
Steps to reproduce the behavior:
Having mpv installed, run the following expression in a shell. While sleeping, minimize/unfocus all windows.

sleep 5; gobble mpv --force-window --idle

Expected behavior
gobble doesn't unmap/hide any windows nor does it exit to the shell/calling command. mpv runs as if it was called directly.

Additional context
Version 1.3 from nixpkgs

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