How do I restore a Places folder I accidentally deleted in Nautilus?
I accidentally deleted my Documents folder and didn't notice it for a couple days. Somewhere in that time, Nautilus auto-updated my list of Places so it no longer includes my Documents folder. I have since restored my Documents folder, but the Places link is still missing. How do I get it back?
14.04 nautilus
add a comment |
I accidentally deleted my Documents folder and didn't notice it for a couple days. Somewhere in that time, Nautilus auto-updated my list of Places so it no longer includes my Documents folder. I have since restored my Documents folder, but the Places link is still missing. How do I get it back?
14.04 nautilus
1
see also askubuntu.com/questions/512565/…
– Jacob Vlijm
Feb 3 '15 at 14:59
Can you verify that your~/.config/user-dirs.dirscontains the following:XDG_DOCUMENTS_DIR="$HOME/Documents"
– Fabby
Feb 4 '15 at 10:42
That file doesn't exist. I'm this close to searching through the Nautilus source code to find where it gets the Places from...
– Jeremy
Feb 5 '15 at 5:28
Have you looked at askubuntu.com/questions/325518/…?
– Mitch♦
Feb 8 '15 at 9:13
Mitch, I hadn't seen that, thanks for the link. I'm not sure if it applies, though. I don't want to add a new folder to the Places menu, I just want to restore what was originally there. If Nautilus can somehow remove deleted folders from the Places menu without recompiling, I should be able to add them back without recompiling, right?
– Jeremy
Feb 8 '15 at 15:14
add a comment |
I accidentally deleted my Documents folder and didn't notice it for a couple days. Somewhere in that time, Nautilus auto-updated my list of Places so it no longer includes my Documents folder. I have since restored my Documents folder, but the Places link is still missing. How do I get it back?
14.04 nautilus
I accidentally deleted my Documents folder and didn't notice it for a couple days. Somewhere in that time, Nautilus auto-updated my list of Places so it no longer includes my Documents folder. I have since restored my Documents folder, but the Places link is still missing. How do I get it back?
14.04 nautilus
14.04 nautilus
asked Jan 31 '15 at 16:35
JeremyJeremy
318515
318515
1
see also askubuntu.com/questions/512565/…
– Jacob Vlijm
Feb 3 '15 at 14:59
Can you verify that your~/.config/user-dirs.dirscontains the following:XDG_DOCUMENTS_DIR="$HOME/Documents"
– Fabby
Feb 4 '15 at 10:42
That file doesn't exist. I'm this close to searching through the Nautilus source code to find where it gets the Places from...
– Jeremy
Feb 5 '15 at 5:28
Have you looked at askubuntu.com/questions/325518/…?
– Mitch♦
Feb 8 '15 at 9:13
Mitch, I hadn't seen that, thanks for the link. I'm not sure if it applies, though. I don't want to add a new folder to the Places menu, I just want to restore what was originally there. If Nautilus can somehow remove deleted folders from the Places menu without recompiling, I should be able to add them back without recompiling, right?
– Jeremy
Feb 8 '15 at 15:14
add a comment |
1
see also askubuntu.com/questions/512565/…
– Jacob Vlijm
Feb 3 '15 at 14:59
Can you verify that your~/.config/user-dirs.dirscontains the following:XDG_DOCUMENTS_DIR="$HOME/Documents"
– Fabby
Feb 4 '15 at 10:42
That file doesn't exist. I'm this close to searching through the Nautilus source code to find where it gets the Places from...
– Jeremy
Feb 5 '15 at 5:28
Have you looked at askubuntu.com/questions/325518/…?
– Mitch♦
Feb 8 '15 at 9:13
Mitch, I hadn't seen that, thanks for the link. I'm not sure if it applies, though. I don't want to add a new folder to the Places menu, I just want to restore what was originally there. If Nautilus can somehow remove deleted folders from the Places menu without recompiling, I should be able to add them back without recompiling, right?
– Jeremy
Feb 8 '15 at 15:14
1
1
see also askubuntu.com/questions/512565/…
– Jacob Vlijm
Feb 3 '15 at 14:59
see also askubuntu.com/questions/512565/…
– Jacob Vlijm
Feb 3 '15 at 14:59
Can you verify that your
~/.config/user-dirs.dirs contains the following: XDG_DOCUMENTS_DIR="$HOME/Documents" – Fabby
Feb 4 '15 at 10:42
Can you verify that your
~/.config/user-dirs.dirs contains the following: XDG_DOCUMENTS_DIR="$HOME/Documents" – Fabby
Feb 4 '15 at 10:42
That file doesn't exist. I'm this close to searching through the Nautilus source code to find where it gets the Places from...
– Jeremy
Feb 5 '15 at 5:28
That file doesn't exist. I'm this close to searching through the Nautilus source code to find where it gets the Places from...
– Jeremy
Feb 5 '15 at 5:28
Have you looked at askubuntu.com/questions/325518/…?
– Mitch♦
Feb 8 '15 at 9:13
Have you looked at askubuntu.com/questions/325518/…?
– Mitch♦
Feb 8 '15 at 9:13
Mitch, I hadn't seen that, thanks for the link. I'm not sure if it applies, though. I don't want to add a new folder to the Places menu, I just want to restore what was originally there. If Nautilus can somehow remove deleted folders from the Places menu without recompiling, I should be able to add them back without recompiling, right?
– Jeremy
Feb 8 '15 at 15:14
Mitch, I hadn't seen that, thanks for the link. I'm not sure if it applies, though. I don't want to add a new folder to the Places menu, I just want to restore what was originally there. If Nautilus can somehow remove deleted folders from the Places menu without recompiling, I should be able to add them back without recompiling, right?
– Jeremy
Feb 8 '15 at 15:14
add a comment |
2 Answers
2
active
oldest
votes
Once you have recreated the Documents folder, make sure your ~/.config/user-dirs.dirs contains something like this:
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
You can edit it as needed using any text editor, for example
nano ~/.config/user-dirs.dirs
Then run the command xdg-user-dirs-gtk-update.
add a comment |
On Ubuntu 14.04 running gnome-3.10 I was able to restore it by inserting/editing the following file:
~/.config/gtk-3.0/bookmarks
file:///home/%yourusername%/Documents
file:///home/%yourusername%/Music
file:///home/%yourusername%/Pictures
file:///home/%yourusername%/Videos
file:///home/%yourusername%/Downloads
Hope it works for you as well!
2
Thanks for your help, but that just adds them as bookmarks. It doesn't restore them to the Places menu. Here is what I am seeing after making sure the bookmark entries are there. I want Documents, Pictures, and Music back in the Places menu like they used to be.
– Jeremy
Feb 4 '15 at 1:58
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f580155%2fhow-do-i-restore-a-places-folder-i-accidentally-deleted-in-nautilus%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Once you have recreated the Documents folder, make sure your ~/.config/user-dirs.dirs contains something like this:
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
You can edit it as needed using any text editor, for example
nano ~/.config/user-dirs.dirs
Then run the command xdg-user-dirs-gtk-update.
add a comment |
Once you have recreated the Documents folder, make sure your ~/.config/user-dirs.dirs contains something like this:
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
You can edit it as needed using any text editor, for example
nano ~/.config/user-dirs.dirs
Then run the command xdg-user-dirs-gtk-update.
add a comment |
Once you have recreated the Documents folder, make sure your ~/.config/user-dirs.dirs contains something like this:
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
You can edit it as needed using any text editor, for example
nano ~/.config/user-dirs.dirs
Then run the command xdg-user-dirs-gtk-update.
Once you have recreated the Documents folder, make sure your ~/.config/user-dirs.dirs contains something like this:
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
You can edit it as needed using any text editor, for example
nano ~/.config/user-dirs.dirs
Then run the command xdg-user-dirs-gtk-update.
edited Nov 16 '18 at 22:21
Zanna
51k13138242
51k13138242
answered Feb 8 '15 at 16:05
aguslraguslr
1,07666
1,07666
add a comment |
add a comment |
On Ubuntu 14.04 running gnome-3.10 I was able to restore it by inserting/editing the following file:
~/.config/gtk-3.0/bookmarks
file:///home/%yourusername%/Documents
file:///home/%yourusername%/Music
file:///home/%yourusername%/Pictures
file:///home/%yourusername%/Videos
file:///home/%yourusername%/Downloads
Hope it works for you as well!
2
Thanks for your help, but that just adds them as bookmarks. It doesn't restore them to the Places menu. Here is what I am seeing after making sure the bookmark entries are there. I want Documents, Pictures, and Music back in the Places menu like they used to be.
– Jeremy
Feb 4 '15 at 1:58
add a comment |
On Ubuntu 14.04 running gnome-3.10 I was able to restore it by inserting/editing the following file:
~/.config/gtk-3.0/bookmarks
file:///home/%yourusername%/Documents
file:///home/%yourusername%/Music
file:///home/%yourusername%/Pictures
file:///home/%yourusername%/Videos
file:///home/%yourusername%/Downloads
Hope it works for you as well!
2
Thanks for your help, but that just adds them as bookmarks. It doesn't restore them to the Places menu. Here is what I am seeing after making sure the bookmark entries are there. I want Documents, Pictures, and Music back in the Places menu like they used to be.
– Jeremy
Feb 4 '15 at 1:58
add a comment |
On Ubuntu 14.04 running gnome-3.10 I was able to restore it by inserting/editing the following file:
~/.config/gtk-3.0/bookmarks
file:///home/%yourusername%/Documents
file:///home/%yourusername%/Music
file:///home/%yourusername%/Pictures
file:///home/%yourusername%/Videos
file:///home/%yourusername%/Downloads
Hope it works for you as well!
On Ubuntu 14.04 running gnome-3.10 I was able to restore it by inserting/editing the following file:
~/.config/gtk-3.0/bookmarks
file:///home/%yourusername%/Documents
file:///home/%yourusername%/Music
file:///home/%yourusername%/Pictures
file:///home/%yourusername%/Videos
file:///home/%yourusername%/Downloads
Hope it works for you as well!
answered Feb 3 '15 at 14:53
funkypopcornfunkypopcorn
311
311
2
Thanks for your help, but that just adds them as bookmarks. It doesn't restore them to the Places menu. Here is what I am seeing after making sure the bookmark entries are there. I want Documents, Pictures, and Music back in the Places menu like they used to be.
– Jeremy
Feb 4 '15 at 1:58
add a comment |
2
Thanks for your help, but that just adds them as bookmarks. It doesn't restore them to the Places menu. Here is what I am seeing after making sure the bookmark entries are there. I want Documents, Pictures, and Music back in the Places menu like they used to be.
– Jeremy
Feb 4 '15 at 1:58
2
2
Thanks for your help, but that just adds them as bookmarks. It doesn't restore them to the Places menu. Here is what I am seeing after making sure the bookmark entries are there. I want Documents, Pictures, and Music back in the Places menu like they used to be.
– Jeremy
Feb 4 '15 at 1:58
Thanks for your help, but that just adds them as bookmarks. It doesn't restore them to the Places menu. Here is what I am seeing after making sure the bookmark entries are there. I want Documents, Pictures, and Music back in the Places menu like they used to be.
– Jeremy
Feb 4 '15 at 1:58
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f580155%2fhow-do-i-restore-a-places-folder-i-accidentally-deleted-in-nautilus%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
see also askubuntu.com/questions/512565/…
– Jacob Vlijm
Feb 3 '15 at 14:59
Can you verify that your
~/.config/user-dirs.dirscontains the following:XDG_DOCUMENTS_DIR="$HOME/Documents"– Fabby
Feb 4 '15 at 10:42
That file doesn't exist. I'm this close to searching through the Nautilus source code to find where it gets the Places from...
– Jeremy
Feb 5 '15 at 5:28
Have you looked at askubuntu.com/questions/325518/…?
– Mitch♦
Feb 8 '15 at 9:13
Mitch, I hadn't seen that, thanks for the link. I'm not sure if it applies, though. I don't want to add a new folder to the Places menu, I just want to restore what was originally there. If Nautilus can somehow remove deleted folders from the Places menu without recompiling, I should be able to add them back without recompiling, right?
– Jeremy
Feb 8 '15 at 15:14