xwinwrap
xwinwrap copied to clipboard
"WID" not replaced in args if passed as `wid=WID`
When I issue this command:
xwinwrap -fs -ni -s -nf -b -un -argb -fdt -sh circle -- gifview -w=WID mygif.gif -a
it returns this output:
gifview: option ‘-w WID’ is invalid
gifview: (Possibilities are ‘root’ and ‘any integer’.)
I tried with:
xwinwrap -fs -ni -s -nf -b -un -argb -fdt -sh circle -- echo WID
and it actually returns:
0x6800002
echo died, exit status 0
as the WID is a byte and not an integer, so why do this happens? I'm on latest Debian Sid, and using Linux 5.6.0-2-amd64 kernel
I haven't looked much into it but try giving the command without =
xwinwrap -fs -ni -s -nf -b -un -argb -fdt -sh circle -- gifview -w WID mygif.gif -a
If I pass it like that ( -w WID ) it works but only for gifview if I try to use it with mpv I must specify WID by --wid=WID and it keep returning a non integer
Again, with mpv you can pass -wid WID It's just how the cli args are parsed in xwinwrap
Thx so, now it works. (mpv discourage using -wid WID with a warning but it works)