I
I
Ilya2014-08-01 13:15:40
linux
Ilya, 2014-08-01 13:15:40

How to run a GUI application from the console in Linux?

How to run a GUI application on Linux without launching a graphical shell? those. so that only this application works, without windowed mode, but immediately on full screen.
Is it possible to do this with any application, or does it have to be specially written for this purpose?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander, 2014-09-23
@ananevilya

You can, but you need to know how regular linux works.
startx starts X11, which starts the window manager from which applications are launched.
If you want to make one application work and nothing else can be launched, then in the simplest version, you need to launch the desired application instead of the window manager, but ...
If the application opens additional windows, it will be very inconvenient to work with it.
Or choose from a variety of window managers suitable and configure it to automatically start and restart one application. Well, we must not forget about the mechanism for turning off the computer, this must also be hung on some buttons.
In general, this is called "kiosk mode".

S
Sergey Lerg, 2014-08-01
@Lerg

You must first launch a display manager, such as LightDM, and then the program itself.
As far as I know, you can configure LightDM to open the application at startup.
/etc/lightdm/lightdm.conf

[SeatDefaults]
autologin-user=<YOUR USER>
autologin-user-timeout=0
user-session=yourownsession

/usr/share/xsessions/yourownsession.desktop
[Desktop Entry]
Name=YourApplication
Comment=Your custom application
Exec=/path/to/binary
Icon=
Type=Application

I
Igor, 2014-08-01
@merryjane

If you want to run a graphical application on the server, but with forwarding Xs to yourself (that is, run it on your Xs), then throughssh -X /path/to/your/app

N
Nikolay Nozdrin-Plotnitsky, 2014-08-01
@scientistnik

Lerg is right! No Xes!
Without x you can run if the application supports!
For example, the vlc player is launched on the command line through the cvlc command.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question