Kodi Community Forum

Full Version: Positioning XBMC Window with wmctrl and BASH
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
I think you need to set the DISPLAY variable. Put

export DISPLAY=:0

At the start of the script