T
T
TheDarhi2020-10-19 21:44:36
linux
TheDarhi, 2020-10-19 21:44:36

Is it possible to draw a GUI for Linux on a distro without a GUI?

Good afternoon habrchane,

I wanted to know about writing graphical interfaces for Linux without a graphical shell.
Will it even work?

Answer the question

In order to leave comments, you need to log in

8 answer(s)
R
Ronald McDonald, 2020-10-19
@Zoominger

In theory - yes, you can try to draw on naked X's.
In practice, you are tormented.

D
Dmitry Shitskov, 2020-10-19
@Zarom

The question is not entirely clear. Maybe we are talking about Terminal UI (TUI?), for example
Screenshot_from_2019-10-09_11-50-16.png

A
AVKor, 2020-10-19
@AVKor

The meaning of the question is not clear.
If the question is whether it is possible to write applications with a GUI on Linux without a GUI, then no problem. We take vim/nano/whatever and write in it:

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'ruby2d'
set width: 300, height: 200
s = Square.new
s.color = 'red'
show

A
Alexander, 2020-10-19
@NeiroNx

In Linux, graphics are divided into several levels:
* Console with one font text graphics, framebuffer.
* Graphics subsystem Xorg (x) many fonts, many framebuffer, drawing routines.
* Interface for drawing controls (buttons, text fields, checkboxes, tabs) - gtk, qt, tk
* Window manager - minimizing, maximizing, switching between windows, rendering design.
* Desktop environment - icons, widgets, taskbar, desktop management. (gnome, kde)
So I think that GTK is enough for you - one full-screen window, a couple of tabs. Even if the window pops up, then without a window manager it simply cannot be dragged and closed - there should simply be two buttons ok and cancel, and it should be on top until it is closed from the program.

A
Adamos, 2020-10-19
@Adamos

There is no "graphical shell" in Linux.
There is a graphic subsystem (usually X) and graphic environments (all sorts of Gnomes, Keds and Rats).
If you try to do without the first one, you will have to write a replacement for it yourself. No chance, with such and such questions.
If we are only talking about the second one, then programs do not need DE, only the user needs it.
For example, Chromium can start instead of DE and does fine without it, working as an Internet kiosk.
Or vlc, working as a video kiosk.
Or %your application%, who will forbid it...

C
CityCat4, 2020-10-20
@CityCat4

writing graphical interfaces for Linux without a graphical shell.

The question is not clear. Without Gnome/KDE? Or no X at all?

V
Voland69, 2020-10-20
@Voland69

You can make a graphical interface without x's if you draw directly to the framebuffer. example on youtube

V
Victor Taran, 2020-10-21
@shambler81

If it’s simplified, then in Linux the graphics subsystem is just a plug-in, you can connect, you
can not connect
, you can connect with themes, you can without them
, you can initialize the graphics core of the video card, you can without
Well, of course, there are also options for these subsystems.
specify the task.
Since there are frameworks for bash scripts that create "pseudo graphical interfaces"
There are console utilities for plotting and drawing that have their own API
and there is X11 and so on there is a whole milestone, but this is not Linux itself, these are just add-ons.
Linux itself does not require a graphics card to run.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question