hyprwm / contrib

Community scripts and utilities for Hypr projects
MIT License
284 stars 39 forks source link

`SLURP_ARGS` doesn't function when more than one argument is specified #120

Open mirrorcult opened 1 day ago

mirrorcult commented 1 day ago

Program

grimblast

Maintainers of the program

@fufexan

Bug or Regression?

Bug

Description

simply put, the code for passing custom cli args to slurp does not work: https://github.com/hyprwm/contrib/blob/1e531dc49ad36c88b45bf836081a7a2c8927e072/grimblast/grimblast#L238

fairly confident this never worked as bash just doesn't let you do this -- any argument after the first gets dropped when you try to pass it like this

image

as you can see here, only the first argument -d (show dimensions) is working, all of the others are nonfunctional.

How to reproduce

1) set SLURP_ARGS with more than one argument separated by spaces 2) see that any arguments after the first do not apply

Hyprland crash reports, program logs, images, videos

No response

fufexan commented 1 day ago

Can you check whether quoting the variable makes it work?