2

I want to know that how can I launch GUI apps from tty (Ctrl+Alt+F1-F6) into GUI mode (Ctrl+Alt+F7)

Sometimes, users having problem with GUI mode like: can login to GUI but Launcher is not working or unable to open even terminal from shortcut. Then this can help to launch essential applications from tty

Pandya
  • 35,771
  • 44
  • 128
  • 188
  • If you already have a running X session, what's the point of dropping to a tty and launching an app from there? That sounds like asking how to swim after attaching a rock to your foot, why attach the rock in the first place? – terdon Oct 25 '14 at 14:04

1 Answers1

8

You can specify DISPLAY environment to specify display for launching apps (see Graphical Environment) as follows from tty:

DISPLAY=:0 <app-command>

Example:

DISPLAY=:0 gedit
DISPLAY=:0 gnome-terminal

This will launch GUI applications in GUI mode (Ctrl+Alt+F7) from tty (Ctrl+Alt+F1-F6).

Pandya
  • 35,771
  • 44
  • 128
  • 188