Quick Fix: Black Desktop Background and Lost Icons

Mar 13, 2009 by

Just a short post for any of you that encounter the same issue I just did. I booted up this morning (Ubuntu Linux 8.04 – Hardy) and logged in, no problem. But my desktop background image (the wallpaper) had disappeared, along with my desktop icons. Also, the desktop background was all black. Rebooting did not fix the issue.

At first I thought it might be the nVidia drivers, but that was not correct because everything else worked (looked) fine. I did notice that if I right clicked on the desktop, nothing happened – No menu, no pop-up. If I selected System -> Preferences -> Appearance and then the Background tab, I was able to add and select several backgrounds but they did not display on the desktop (it remained back).

The issue turned out to be with Gnome/Nautilus (not Ubuntu/Linux). I began to realize this when I stumbled into this thread: Gnome desktop icon disappeared. In general that thread suggested restarting Gnome and perhaps restoring the a backup of the Gnome session file (I didn’t have a backup of that and restarting the system did not work). The gem was one of the last comments that referred to Nautilus . I didn’t think Nautilus would be the fix here – but it was!

On a lark, I decided to restart Nautilus with the following command in a terminal:

killall nautilus

For those not familiar with the above command, you may find this link helpful: Linux/Unix Command: killall. Suddenly my desktop wallpaper was back, as were my icons!

So… for any of you experiencing the same issue, hopefully this quick fix will save you hours of surfing or otherwise searching for a fix.

Cheers! :)

23 Comments

  1. guy man

    i would please like to know what do mean when you say nautilus because i am on an accer running on windows vista so can you please help me

    • @guy man – Nautilus is like Windows Explorer and a bit more. Sure it facilitates a visual listing of files, etc. but it also can use scripts to enhance, change, etc. it’s functionality. This link might provide you with some helpful information: http://www.ghacks.net/2009/02/03/get-to-know-linux-the-nautilus-file-manager/

      Hopefully this answer helps you. – Cheers!

    • @Oriol

      alt+f2 is not a terminal, it’s a “Run application” applet. To open a terminal in Ubuntu Linux 8.04 access terminal via your Gnome menu like this:

      Applications -> Accessories -> Terminal

      As mentioned, alt+f2 is not a terminal, but you can access terminal after the alt+f2 combo by typing gnome-terminal in the available text field (that you’ll see when the “Run Application” applet opens up).

      I hope this helps you. :)

  2. Jady L.

    It worked!!! Thank you!!!! :) :)

  3. James Joyce

    Thanks for your fix. My problem was a little different. A black stripe had appeared above the background image. I could not eliminate it via the background dialog. The top panel could appear there, but if collapsed would leave a trail of garbage. Also, any window moved into and out of the area left a trail of its title bar. Very strange. But “killall nautilus” restored my background to its proper size and behavior. I was about to re-install Ubuntu, but you saved the day!

    • @James Joyce – Thanks, nice to hear! Hopefully, the new Ubuntu 9.04 will have better control. I’ve reinstalled Ubuntu a few times in the past because I could not figure out how to change (fix) something. Cheers to you!

  4. Oriol

    Good job. I’m having the same problem but I dont know how to open a terminal, alt+f2 doesnt work.

    I’d like to kill nautillus :/

    Thanks :)

  5. oriol

    Yeah i know alt+f2 is not a terminal :P I mean , I could not open a terminal in any way.. I had no menus ..

    Anyway, I couldnt solve the problem by killing nautilus ( in fact i dont know if it was running .. ) so i ve reinstalled ubuntu ;(

  6. jordanwb

    ubuntu@ubuntu:~$ killall nautilus
    nautilus: no process killed

    Now what?

  7. @jordanwb

    Now your black screen will be fixed. If not, you may be experiencing additional (and other) issues as well (which contribute to the problem.

  8. Rebeliant

    Hi. Just installed Ubuntu 9.04 and manual installed Gnome and I have the same problem:
    http://i27.tinypic.com/2vjeres.jpg

    I have followed your tips and the output is:
    nautilus: no process killed

    The screen is still black.

  9. Rebeliant

    It was Ubuntu Server edition. I installed it many times + Gnome and was fine. At this time not. Just reinstalled to newest CentOS and I’m happy ;-). Thanks for answer.

  10. Adam

    searched, found, read, executed, fixed
    all less than 10 seconds
    Thanks

  11. John

    I have a similar problem with 9.10. I can’t see my background or icons unless I switch the login manager to failsafe Gnome. Otherwise it is all black. Your solution for killing nautilus didn’t work.

    I have a feeling this is something very simple, but can’t for the life of me figure it out.

  12. Bala

    I have same problem ,it worked with
    killall nautilus
    But during the subsequent login the screen is black again…i was wondering if there is a permanent solution to this problem

  13. reza

    The mentioned method doesn’t solve the problem on Ubuntu 9.10.
    The only way I find after googling, was to turn off the visual effect in Appearance preferences. I don’t know why I am not able to have the visual effect without having that problem.

  14. jason

    Reza’s solution is what worked for me as well.

    Visual effects > NONE

  15. Ralph

    Same problem – missing my screen – but also missing icons. I can see the top and bottom gnome panels, and use the Applications menu, as well as the System menu. However, I cannot use the Places menu. I select anything in Places, and the cursor spins for 15″ or so, then reverts to the arrow, but there’s no navigation window. Any clues? Running Ubuntu 9.10 on a Dell Inspiron 1150 laptop.

  16. Randhir

    i lost all the icons on desktop. i cannot open pen drive & dvd also. i using centos 5 ….please help me…

  17. I solved a similar issue.
    But I am using Xubuntu 9.10. I posted the solution in Spanish.

    Cheers! :)

Trackbacks/Pingbacks

  1. Escritorio Color Negro en Linux (Xubuntu) « Omar's Blog - [...] que un cuate había tenido el mismo problema, pero él usaba Ubuntu, sospechaba que el problema era con GNOME ...

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>