Wednesday, May 8, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 12758  / 2 Years ago, mon, january 3, 2022, 9:22:13

I'm new with Ubuntu and used the command sudo -s to become root and executed nautilus to open my Nautilus Elementary as root.



While managing my files, I wrongly pressed the "Delete" button on my important folder.



I thought that folder will going to Trash folder, but if I click on Trash (in nautilus running as root) my nautilus was immediately closed, with the below error in a terminal:




** (nautilus:30221): CRITICAL **: nautilus_file_get_location:
assertion `NAUTILUS_IS_FILE (file)' failed



(nautilus:30221): GLib-GIO-CRITICAL **: g_file_get_uri: assertion
`G_IS_FILE (file)' failed
** ERROR:nautilus-window-manage-views.c:819:begin_location_change:
assertion failed: (location != NULL)




On other user accounts, the trash folder seems to be in .Trash, but but in /root, there is no such directory.



Where is my folder that I deleted?


More From » nautilus

 Answers
7

open nautilus as root:gksu nautilus
then, after entering your password, you will have the nautilus windows.
press Ctrl+H to show the hidden files
then go to /home/.trash-0
all your deteted files during your root session should be there.


[#44092] Monday, January 3, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nerta

Total Points: 414
Total Questions: 103
Total Answers: 97

Location: England
Member since Wed, Apr 19, 2023
1 Year ago
;