Banshee = XGetWindowProperty[_NET_WM_DESKTOP] failed (code=1)

1,970 views
Skip to first unread message

psc

unread,
Aug 4, 2011, 12:02:25 AM8/4/11
to xdotool-users
Hi,

I am trying to control Banshee (Media Player) with my voice using
kiku / xdotool. Banshee is open in the same desktop that my terminal
(xdotool.static).

When searching for "Banshee" (first startup) like this:
./xdotool.static search Banshee
Defaulting to search window name, class, and classname
67108865
67108876
67108931

Banshee is showing the song's title (after hitting play) in the window
title bar:
./xdotool.static search Banshee
Defaulting to search window name, class, and classname
67108865
67108876
67110432
67108931

Now my problem:
./xdotool.static search Banshee windowactivate
Defaulting to search window name, class, and classname
XGetWindowProperty[_NET_WM_DESKTOP] failed (code=1)

Same problem with --sync (only taking longer).

Adding --desktop 0 is working (returning only 1 ID):
./xdotool.static search --desktop 0 Banshee
Defaulting to search window name, class, and classname
67108931

But not very useful in my case, i cannot know on what desktop Banshee
or kiku will be open. Or cannot know what ID to use (sometimes the
first, sometimes the last)?

Any idea on how to work with this situation?
Thanks!

rar...@student.chalmers.se

unread,
Jun 2, 2012, 6:25:40 PM6/2/12
to xdotoo...@googlegroups.com
Having similar issues on my Ubuntu 12.04 with xmonad, only I search for `--class firefox`.

Luckily I found your research quite helpful as I could live with the contraining `--desktop 0` solution. Anyhow, I'm interested why the "real" solution yields the error you mentioned.

Best,
Arash
Reply all
Reply to author
Forward
0 new messages