Tuesday, June 09, 2009

Specify Display for Apps

Usually the display is set to default or environment variables, but if you see error like "Cannot Open Display", you may need this.

First, check the display name you want, use xdpyinfo, you will find name like:

name of display: :0.0

To use the display, just put DISPLAY=:0.0 before your applications.

No comments:

Related Posts Plugin for WordPress, Blogger...