How do I restore a Places folder I accidentally deleted in Nautilus?












5















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?










share|improve this question


















  • 1





    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











  • 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
















5















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?










share|improve this question


















  • 1





    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











  • 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














5












5








5


2






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?










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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.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











  • 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





    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











  • 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










2 Answers
2






active

oldest

votes


















12





+50









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.






share|improve this answer

































    3














    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!






    share|improve this answer



















    • 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











    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    12





    +50









    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.






    share|improve this answer






























      12





      +50









      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.






      share|improve this answer




























        12





        +50







        12





        +50



        12




        +50





        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.






        share|improve this answer















        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.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 16 '18 at 22:21









        Zanna

        51k13138242




        51k13138242










        answered Feb 8 '15 at 16:05









        aguslraguslr

        1,07666




        1,07666

























            3














            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!






            share|improve this answer



















            • 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
















            3














            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!






            share|improve this answer



















            • 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














            3












            3








            3







            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!






            share|improve this answer













            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!







            share|improve this answer












            share|improve this answer



            share|improve this answer










            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














            • 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


















            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Category:香港粉麵

            List *all* the tuples!

            Channel [V]