glava icon indicating copy to clipboard operation
glava copied to clipboard

Segmentation fault when using `-m bars`

Open mendess opened this issue 5 years ago • 1 comments

When launching glava like this:

glava '--request=setgeometry 0 0 1920 1080' '--request=setopacity "xroot"' -d

it works perfectly

if I then try:

glava '--request=setgeometry 0 0 1920 1080' '--request=setopacity "xroot"' -d -m bars

I get a segmentation fault, no matter what I pass to the -m flag

glava '--request=setgeometry 0 0 1920 1080' '--request=setopacity "xroot"' -d -m foobar

also segfaults

However,

glava '--request=setgeometry 0 0 1920 1080' -d -m bars
# or
glava '--request=setgeometry 0 0 1920 1080' -d -m foobar

does not segfault

Argument position also seems to not matter

glava '--request=setgeometry 0 0 1920 1080' -m bars '--request=setopacity "xroot"' -d

also segfaults

Running on i3 + Arch linux, installed from the official repositories:

~> glava --version
GLava (glava) v1.6.3 (stable, unix/fhs)

mendess avatar Dec 20 '19 23:12 mendess

Thanks for the report. Will certainly be fixed in 2.0 but I can also fix it in master to solve the issue for the time being.

You can probably circumvent this entire by just using --request="mod <name>" in place of -m <name>, since the -m flag is really just an alias for the request.

jarcode-foss avatar Dec 21 '19 04:12 jarcode-foss