wow, that's what i need!!! many thanks hellork i was trying to detect the Spotify tray icon in Gnome. With this command i get the info I needed: Code: xwininfo -id `wmctrl -l -p | grep "lateral superior" | awk '{print $1}'` -tree | grep "explorer.exe" | awk '{print $8}' Just replace "lateral superior" with Gnome tray panel name (get with wmctrl -l -p) and done :) I wrote some posts in my blog to explain my experience with Wine and Spotify, if someone wants to know: http://dmnet.bitacoras.com/?s=spotify+wine Thanks !! :)