Graphical User Interface
, or GUI, applications in various environments.
[fedorauser@localhost]$ firefox
File names vs Application names
/usr/bin/gnome-disks
.
STDERR
, is sent to the terminal window. This can be especially useful when troubleshooting.
Example 1.1. Viewing errors by launching graphical applications from the command line
[fedorauser@localhost]$ astromenace-wrapper
AstroMenace 1.3.1 121212
Open XML file: /home/fedorauser/.config/astromenace/amconfig.xml
VFS file was opened /usr/share/astromenace/gamedata.vfs
Vendor : OpenAL Community
Renderer : OpenAL Soft
Version : 1.1 ALSOFT 1.15.1
ALut ver : 1.1
Font initialized: DATA/FONT/LiberationMono-Bold.ttf
Current Video Mode: 3200x1080 32bit
Xinerama/TwinView detected.
Screen count: 2
Screen #0: (0, 0) x (1920, 1080)
Screen #1: (1920, 0) x (1280, 1024)
Supported resolutions list:
640x480 16bit
640x480 32bit
640x480 0bit
768x480 16bit
<output truncated>
job control
feature.
[fedorauser@localhost]$ emacs foo.txt &
Ending a session
TTY
and displayed on another by specifying the DISPLAY
variable. This can be useful when running multiple graphical sessions, or for troubleshooting problems with a desktop session.
DISPLAY
variable is always an integer preceded by a colon, and will be :0 in most cases. Check the arguments of the currently running X process to verify the value. The command below shows both the DISPLAY
variable as well as the TTY that X is running on, tty1
.
[fedorauser@localhost]$ps aux|grep /usr/bin/X
root 1498 7.1 1.0 521396 353984tty1
Ss+ 00:04 66:34 /usr/bin/X:0
vt1 -background none -nolisten tcp -auth /var/run/kdm/A:0-22Degc root 23874 0.0 0.0 109184 900 pts/21 S+ 15:35 0:00 grep --color=auto /usr/bin/X
DISPLAY
variable when executing the program.
[fedorauser@localhost]$ DISPLAY=:0 gnome-shell --replace &
vt1
, pressing Ctrl+Alt+F1 will return to the desktop environment.