English Persian
Opening Graphical Applications
indexterm:[GUI] Fedora provides graphical applications in addition to command line utilities for configuring many features. This chapter describes methods for opening `Graphical User Interface`, or _GUI_, applications in various environments.
Opening graphical applications from the command line
Graphical applications can be launched from a terminal window or console session by simply typing the name of the application.
[fedorauser@localhost]$ [command]#firefox#
File names vs Application names
Programs are opened from the command line using the name of the executable file provided in the program's package. An entry in the desktop menu will often be named differently from the file it executes. For example, the GNOME disk management utility appears in the menu as [application]*Disks*, and the file it executes is `/usr/bin/gnome-disks`.
When a program is executed on the command line, the terminal is occupied until the program completes. When a graphical application is executed from the command line, the program's error output, or `STDERR`, is sent to the terminal window. This can be especially useful when troubleshooting.
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>
To launch a graphical application, but fork the additional output into the background and return the terminal for immediate use, use the shell's `job control` feature.
[fedorauser@localhost]$ [command]#emacs foo.txt &#
Ending a session
Applications that hold the command line prompt until they complete will close when the terminal session ends, even if they are forked into the background.