Results 1 to 2 of 2
Hello world!
I am trying to be able to open programs from the command-line (console), but it tells me that I need to specify the display. The way I always ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-03-2012 #1
Specifying displays
Hello world!
I am trying to be able to open programs from the command-line (console), but it tells me that I need to specify the display. The way I always thought you did that was as following:
Does anyone have any suggestions?Code:$ ./firefox -display=:0
- 08-04-2012 #2Just Joined!
- Join Date
- Sep 2005
- Location
- Edmonton, Canada
- Posts
- 43
Different progams use different syntax for specifing a display, but a universial way to do it is to set the environment var $DISPLAY before running the program:
export DISPLAY=:0
./firefox
will work. Keep in mind the same user must own the :0 display and run the program. Running the command as root also works, but is not recommended, of course.


Reply With Quote
