Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

"WID" not replaced in args if passed as wid=WID #11

Open
OnionMaster03 opened this issue Jul 2, 2020 · 4 comments
Open

"WID" not replaced in args if passed as wid=WID #11

OnionMaster03 opened this issue Jul 2, 2020 · 4 comments

Comments

@OnionMaster03
Copy link

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

@OnionMaster03 OnionMaster03 changed the title Actually WID is not an integer It seems like WID is not an integer Jul 2, 2020
@r00tdaemon
Copy link
Owner

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

@OnionMaster03
Copy link
Author

OnionMaster03 commented Jul 3, 2020

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

@r00tdaemon
Copy link
Owner

Again, with mpv you can pass -wid WID It's just how the cli args are parsed in xwinwrap

@r00tdaemon r00tdaemon changed the title It seems like WID is not an integer "WID" not replaced in args if passed as wid=WID Jul 3, 2020
@OnionMaster03
Copy link
Author

Thx so, now it works. (mpv discourage using -wid WID with a warning but it works)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants