Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1413  / 2 Years ago, wed, july 20, 2022, 8:59:54

I accidentally deleted the Files folders from /usr/share/application, and now I can't open the Trash bin from the unity Panel. and I can't open any of my folders from the Dash.



Also, my home folder is missing from the Panel (or Launcher). I ran gksu nautilus /usr/share/application/ and deleted a couple of Files folders by mistake.



When I open the Trash bin from a window, the folders I deleted are not in there so I can't restore them.


More From » unity

 Answers
6

Try this command:



echo '[Desktop Entry]
Name=Files
Comment=Access and organize files
Keywords=folder;manager;explore;disk;filesystem;
Exec=nautilus --new-window %U
Icon=system-file-manager
Terminal=false
Type=Application
StartupNotify=true
OnlyShowIn=GNOME;Unity;
Categories=GNOME;GTK;Utility;Core;
MimeType=inode/directory;application/x-gnome-saved-search;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=nautilus
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=3.6.3
Actions=Window;
X-Unity-IconBackgroundColor=#af4853
X-Ubuntu-Gettext-Domain=nautilus

[Desktop Action Window]
Name=Open a New Window
Exec=nautilus --new-window
OnlyShowIn=Unity;' | sudo tee /usr/share/applications/nautilus.desktop


then



sudo chmod o+x /usr/share/applications/nautilus.desktop

[#27468] Thursday, July 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jokaned

Total Points: 315
Total Questions: 116
Total Answers: 119

Location: Somalia
Member since Mon, Feb 27, 2023
1 Year ago
;