Accidentally Used xkill on Desktop – How to Restore Desktop

command lineiconsxkill

I ran xkill to force quit Chrome, and I clicked my desktop. The icons disappeared.

Is there a command that will get them back? I'd rather not restart.

I'm using GNOME and GDM.

Best Answer

The desktop icons are managed by file browser, on regular running try

$ ps ax | grep nautilus
 2464 ?        Sl     0:11 nautilus -n
 6390 pts/2    S+     0:00 grep --color=auto nautilus

From man nautilus

          Only create windows for explicitly specified URIs.

In this mode nautilus will not show a window, and it run like a daemon. So for you case use:

nautilus -n & disown
Related Question