Results 1 to 6 of 6

Thread: Desktop icons disappeared after cleaning out /var/crash

  1. #1
    Join Date
    Sep 2016
    Beans
    54

    Desktop icons disappeared after cleaning out /var/crash

    I upgraded from Ubuntu 18.04 to 20.04. In Ubuntu 18.04, whenever I booted up, I would get a dialog box with the message "System program problem detected . Report?". I expected this would go away after the upgrade but it did not. In an effort to eliminate this message I executed this command:

    Code:
    sudo rm -r /var/crash *
    This cleaned out all in my /var/crash directory. This did work to eliminate the error message after reboot, and log in. It also eliminated most of the shortcut icons on my desktop. I can't figure how deleting crash reports would do that.

    Why did the shortcut desktop icons disappear? What is the best way to recover them?

  2. #2
    Join Date
    Aug 2013
    Beans
    4,941

    Re: Desktop icons disappeared after cleaning out /var/crash

    Just backup data and do a clean install. If you have cruffs in your system and getting error upgrading is more likely to give you issues.

  3. #3
    Join Date
    Sep 2016
    Beans
    54

    Re: Desktop icons disappeared after cleaning out /var/crash

    The mistake was the asterisk in the command that also deleted all in my home directory. When I did it I thought it was a wild card that would select all in /var/crash.

    Fortunately just before I upgraded to Ubuntu 20.04 I backed up all in the home directory. I used that backup to restore it.

  4. #4
    GhX6GZMB is offline Iced Almond Soy Ubuntu, No Foam
    Join Date
    Jun 2019
    Beans
    1,093

    Re: Desktop icons disappeared after cleaning out /var/crash

    The icon files for your desktop are normally in $Home/Desktop in the form of .desktop files.

  5. #5
    Join Date
    May 2008
    Beans
    3,985
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Desktop icons disappeared after cleaning out /var/crash

    Quote Originally Posted by artist-wavenet View Post
    I upgraded from Ubuntu 18.04 to 20.04. In Ubuntu 18.04, whenever I booted up, I would get a dialog box with the message "System program problem detected . Report?". I expected this would go away after the upgrade but it did not. In an effort to eliminate this message I executed this command:

    Code:
    sudo rm -r /var/crash *
    This cleaned out all in my /var/crash directory. This did work to eliminate the error message after reboot, and log in. It also eliminated most of the shortcut icons on my desktop. I can't figure how deleting crash reports would do that.

    Why did the shortcut desktop icons disappear? What is the best way to recover them?
    When you executed the command, which directory were you in?

    Why is there a space between crash and the asterisk?

    In effect, I think the command applied to two destinations.
    Last edited by tea for one; August 24th, 2021 at 08:36 AM. Reason: Altered question about directory

  6. #6
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,792

    Re: Desktop icons disappeared after cleaning out /var/crash

    Yes, if you look at man rm, you will see that it can indeed operate on multiple paths at the same time, so it is that space, instead of a slash, that broke your system.

    Remove files from arbitrary locations:
    rm {{/path/to/file}} {{/otherpath/to/file2}}

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •