Kill Xorg without killing applications

Asked by dani_bs

(Sorry for my english)

In Windows, if Explorer (not Internet Explorer) have some problems or crash, is possible to kill explorer.exe and restart it without killing all other applications so, for example, I can continue to work with Excel without loosing anything.
In Ubuntu (and I suppose Linux in general) if I need to restart window manager I can kill Xorg but all the process (and program) are also killed.
There is a way to do the same as in Windows?

Daniele

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu xorg Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

The Xorg process is the parent of all the child processes. When you kill a parent process, it's children die. You can see this for yourself by launching gedit in a terminal like this:

gedit & 2>/dev/null

If you then close the terminal, gedit will also close.

In Windows, Explorer only draws the task-bar and desktop icons. The Linux equivalent would be nautilus and the panel application you are using.

Revision history for this message
dani_bs (sdaniele78) said :
#2

Ok, I suspected that.
So, if I have some problems in my desktop (for example, icons close to clock are not present), I must kill a different process, right?
Because I usually kill xorg.....

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#3

in a terminal you can run:

top

and you can kill apps there, you can also run:

xkill

and click an application to kill it

Revision history for this message
dani_bs (sdaniele78) said :
#4

Thanks actionparsnip, that solved my question.