Kodi Community Forum
Linux Positioning XBMC Window with wmctrl and BASH - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Linux Positioning XBMC Window with wmctrl and BASH (/showthread.php?tid=186727)



Positioning XBMC Window with wmctrl and BASH - inckie - 2014-02-18

I have created a small bash script to launch XBMC, and place XBMC it on the left or right monitor in my dual screen setup

But I cannot get it to work, if I echo all the wmctrl commands instead of exec, and run them manually they work in a terminal

http://pastebin.com/ex88Nfg3

Anyone who can help me figure out what the problem might be?


RE: Positioning XBMC Window with wmctrl and BASH - teeedubb - 2014-02-18

I think you need to set the DISPLAY variable. Put

export DISPLAY=:0

At the start of the script