Urgent! Help me restore this folder
I was recently installing a a package and in due course, I typed by mistake the following code in a terminal:
sudo rm -r /usr/share/applications/ Now all my program shortcuts are gone and my gnome terminal as well as icons,and panels are not accessible as a root user....(Thank god I was using AWN on my current account!) Can anyone help me restore the folder because from the terminal, the command says it possible. |
You said 'recently', so does it follow it was just the gnome thing that it puts in automatically? You know you hadn't changed it much.
In which case just reinstall Gnome seems the simple course. Is gnome a 'metapackage' or whatever they are called. In which case: Code:
sudo apt-get install --reinstall gnome EDIT: Sorry that was a bit crass even by my usual standards. You've presumably removed all your *.desktop files. The above suggestion might still be worth a try. Or try recovering the directory with some sort of recovery program, but its likely to be a bit iffy. |
Thanks a lot. Re-installing gnome has at least returned most functionality, but I am still missing my .desktop icons. I have tried to get recovery software but apparently none exit for Linux.
|
Quote:
I'd probably try something like: Code:
sudo apt-get install --reinstall $(dpkg -l '*gnome*' | grep ^ii | awk '{ print $2 }') Code:
sudo apt-get install --reisntall $(dlocate /usr/share/applications/ | cut -f1 -d':' | sort | uniq) Cheers, Evo2. |
Quote:
You mean icons showing on the desktop, the root window as twer? Don't know but it should be simple - start a program and then drag its icon onto the desktop, that sort of thing. |
Quote:
Sasha |
...Thanks for all the help. Al least functionality has been restored and i can use my root account.
|
All times are GMT -5. The time now is 02:23 PM. |