You are not logged in.

#1 2010-03-10 10:20:49

samhain
Member
Registered: 2007-07-19
Posts: 39

Bashrun --toggle option fails with xdotool [SOLVED]

Running "bashrun --toggle" fails with xdotool version 1.20100302.2713-1

When run from the terminal, no error message is given, the bashrun window is simply not shown.

Running bashrun without options works fine.

Running "bashrun --toggle" when the bashrun window is visible, correctly hides it. So, only the showing behaviour of --toggle fails.

Downgrading to a previous version of xdotool fixes the issue.

My desktop environment is Openbox. Bashrun version is 0.15.

Anyone is experiencing the same problem?

Last edited by samhain (2010-04-17 07:21:04)


Arch is to Linux as Jeet Kune Do is to martial arts.

Offline

#2 2010-03-10 11:12:10

hbekel
Member
Registered: 2008-10-04
Posts: 311

Re: Bashrun --toggle option fails with xdotool [SOLVED]

Yeah, the --onlyvisible option in xdotool is broken in the latest release, so --toggle doesn't work in bashrun atm. But the issue has been fixed in xdotool's svn already, see

http://code.google.com/p/semicomplete/i … tail?id=22

The --toggle option should work again in bashrun with the next release of xdotool.

Sorry for the inconvenience...

For a quick fix you can change line 508 of /usr/bin/bashrun to

MAPPED=$(xwininfo -id $BASHRUN_WID | grep IsViewable)

to avoid using xdotool in the toggle function.

Last edited by hbekel (2010-03-10 11:19:34)

Offline

#3 2010-03-10 11:22:52

samhain
Member
Registered: 2007-07-19
Posts: 39

Re: Bashrun --toggle option fails with xdotool [SOLVED]

Thanks!

I 'll change the topic to solved.

Last edited by samhain (2010-03-19 21:06:24)


Arch is to Linux as Jeet Kune Do is to martial arts.

Offline

#4 2010-03-19 21:15:45

samhain
Member
Registered: 2007-07-19
Posts: 39

Re: Bashrun --toggle option fails with xdotool [SOLVED]

I have changed the topic back to unsolved.

Upgrading to the last version of xdotool (1.20100318.2737-1) now produces a different behaviour for the --toggle switch: a new instance of bashrun is created upon each invocation.


Arch is to Linux as Jeet Kune Do is to martial arts.

Offline

#5 2010-03-20 08:59:07

hbekel
Member
Registered: 2008-10-04
Posts: 311

Re: Bashrun --toggle option fails with xdotool [SOLVED]

Yes, it seems the new release of xdotool breaks it again, now with a different bug... I've already reported the issue:

http://code.google.com/p/semicomplete/i … tail?id=25

There's no quick fix for bashrun, so you'll have to downgrade xdotool to the last working version. I think this was xdotool 1.20100227.2679.

Sorry for the inconvenience.

Offline

#6 2010-04-17 07:20:40

samhain
Member
Registered: 2007-07-19
Posts: 39

Re: Bashrun --toggle option fails with xdotool [SOLVED]

Last xdotool upgrade (1.20100416.2809-1) is finally fixed and now bashrun works fine.


Arch is to Linux as Jeet Kune Do is to martial arts.

Offline

Board footer

Powered by FluxBB