How do I pin my favorite folders in Ubuntu dock like in Windows?












9















I miss those pins I make in Windows.



enter image description hereenter image description here



How can I do the same in Ubuntu 17.10 with GNOME 3?










share|improve this question




















  • 2





    I know i can pin my nautilus. Now i want to pin Downloads to that nautilus pinned to the ubuntu dock.

    – nazar2sfive
    Oct 20 '17 at 13:37






  • 2





    One way could be creating a custom .desktop file for nautilus.

    – Videonauth
    Dec 10 '17 at 12:18
















9















I miss those pins I make in Windows.



enter image description hereenter image description here



How can I do the same in Ubuntu 17.10 with GNOME 3?










share|improve this question




















  • 2





    I know i can pin my nautilus. Now i want to pin Downloads to that nautilus pinned to the ubuntu dock.

    – nazar2sfive
    Oct 20 '17 at 13:37






  • 2





    One way could be creating a custom .desktop file for nautilus.

    – Videonauth
    Dec 10 '17 at 12:18














9












9








9


2






I miss those pins I make in Windows.



enter image description hereenter image description here



How can I do the same in Ubuntu 17.10 with GNOME 3?










share|improve this question
















I miss those pins I make in Windows.



enter image description hereenter image description here



How can I do the same in Ubuntu 17.10 with GNOME 3?







gnome-shell ubuntu-dock






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 25 at 6:47









pomsky

30.7k1194127




30.7k1194127










asked Oct 20 '17 at 12:45









nazar2sfivenazar2sfive

95152250




95152250








  • 2





    I know i can pin my nautilus. Now i want to pin Downloads to that nautilus pinned to the ubuntu dock.

    – nazar2sfive
    Oct 20 '17 at 13:37






  • 2





    One way could be creating a custom .desktop file for nautilus.

    – Videonauth
    Dec 10 '17 at 12:18














  • 2





    I know i can pin my nautilus. Now i want to pin Downloads to that nautilus pinned to the ubuntu dock.

    – nazar2sfive
    Oct 20 '17 at 13:37






  • 2





    One way could be creating a custom .desktop file for nautilus.

    – Videonauth
    Dec 10 '17 at 12:18








2




2





I know i can pin my nautilus. Now i want to pin Downloads to that nautilus pinned to the ubuntu dock.

– nazar2sfive
Oct 20 '17 at 13:37





I know i can pin my nautilus. Now i want to pin Downloads to that nautilus pinned to the ubuntu dock.

– nazar2sfive
Oct 20 '17 at 13:37




2




2





One way could be creating a custom .desktop file for nautilus.

– Videonauth
Dec 10 '17 at 12:18





One way could be creating a custom .desktop file for nautilus.

– Videonauth
Dec 10 '17 at 12:18










3 Answers
3






active

oldest

votes


















11





+25









Follow the steps below.





  1. Create a .desktop file (say custom-filemanager.desktop) in ~/.local/share/applications. You can do this by running the following command in Terminal



    touch ~/.local/share/applications/custom-filemanager.desktop



  2. Open the .desktop file using a text-editor, for example by running



    gedit ~/.local/share/applications/custom-filemanager.desktop



  3. Add the following lines to the file:



    [Desktop Entry]
    Name=File Manager
    Comment=Access and organize files
    Keywords=folder;manager;explore;disk;filesystem;
    Exec=nautilus --new-window %U
    Icon=org.gnome.Nautilus
    Terminal=false
    Type=Application
    Categories=GNOME;GTK;Utility;Core;FileManager;
    Actions=new-window;open-downloads;

    [Desktop Action new-window]
    Name=New Window
    Exec=nautilus --new-window
    [Desktop Action open-downloads]
    Name=Open my Downloads folder
    Exec=nautilus /home/YOUR-USER-NAME/Downloads


    Replace YOUR-USER-NAME by your user-name in the last line.



  4. Save the file.


  5. Click on "Activities" and search for "File Manager". It should appear.


  6. Right click on the "File Manager" and select "Add to Favourites". It should be added to the dock.



Now if you right click on the newly added File Manager icon in the dock, you should see a "Open my Downloads folder" option which should work as expected.



enter image description here



Similarly you can add shortcuts to other locations by adding new Desktop Actions and adding the name of the action to the Actions= line. For more info see this.






share|improve this answer

































    2














    It's not prefect for what you seek, but you might be interested in the Gno-Menu extension.



    The extension adds a quite configurable menu. The following shows it's default:



    enter image description here



    The recent documents I have accessed are shown on the right. The shortcuts on the left are set to the Places of Nautilus. The highlighted folder shortcut is to a folder I have "pinned" in Nautilus.



    The Recents overview does not seem to support viewed folders. I don't know how the "Link to Intro etc." link got in there. Creating a new link to a folder and opening it did not put the folder there, and roaming in Nautilus does not affect Recents (until you open a file).



    The right-hand side can also be configured to show your Favorites from the overview, where you could then add .desktop entries for Nautilus to open specific folders. (See pomsky's answer, but use Exec=nautilus /home/user/folder/ --new-window %U and include only the [Desktop Entry] part.)






    share|improve this answer

































      1














      As we can pin only Application to Gnome Dock, the best available option here is creating an application launcher that will open the favorite directory directly with a single mouse click.



      So in order to do that navigate to activities and search for "Main menu". Now you will get a window titled Main menu.



      Click on New item. and You will get a small window and fill the fields like described below.



      In the given example i am pinning my Videos directory to Dock.



      enter image description here



      And now it will be shown at the bottom of the main menu window like this



      enter image description here.



      Click on close button and again go to activities and search for the the "Name" provided. In my case its "My Videos". Single click on that and just drag and drop it to the Gnome dock.



      Now You will get the shortcut on your Dock.



      enter image description here



      If you click on that you will get your favorite directory which you set opened by nautilus.



      Tweaks



      You can do more tweaks like changing the icon of the application launcher you want while creating the shortcut of even after creating the shortcut and pinning it.



      After tweaking my shortcut(My Videos) is like this.



      enter image description here






      share|improve this answer

























        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%2f966740%2fhow-do-i-pin-my-favorite-folders-in-ubuntu-dock-like-in-windows%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        11





        +25









        Follow the steps below.





        1. Create a .desktop file (say custom-filemanager.desktop) in ~/.local/share/applications. You can do this by running the following command in Terminal



          touch ~/.local/share/applications/custom-filemanager.desktop



        2. Open the .desktop file using a text-editor, for example by running



          gedit ~/.local/share/applications/custom-filemanager.desktop



        3. Add the following lines to the file:



          [Desktop Entry]
          Name=File Manager
          Comment=Access and organize files
          Keywords=folder;manager;explore;disk;filesystem;
          Exec=nautilus --new-window %U
          Icon=org.gnome.Nautilus
          Terminal=false
          Type=Application
          Categories=GNOME;GTK;Utility;Core;FileManager;
          Actions=new-window;open-downloads;

          [Desktop Action new-window]
          Name=New Window
          Exec=nautilus --new-window
          [Desktop Action open-downloads]
          Name=Open my Downloads folder
          Exec=nautilus /home/YOUR-USER-NAME/Downloads


          Replace YOUR-USER-NAME by your user-name in the last line.



        4. Save the file.


        5. Click on "Activities" and search for "File Manager". It should appear.


        6. Right click on the "File Manager" and select "Add to Favourites". It should be added to the dock.



        Now if you right click on the newly added File Manager icon in the dock, you should see a "Open my Downloads folder" option which should work as expected.



        enter image description here



        Similarly you can add shortcuts to other locations by adding new Desktop Actions and adding the name of the action to the Actions= line. For more info see this.






        share|improve this answer






























          11





          +25









          Follow the steps below.





          1. Create a .desktop file (say custom-filemanager.desktop) in ~/.local/share/applications. You can do this by running the following command in Terminal



            touch ~/.local/share/applications/custom-filemanager.desktop



          2. Open the .desktop file using a text-editor, for example by running



            gedit ~/.local/share/applications/custom-filemanager.desktop



          3. Add the following lines to the file:



            [Desktop Entry]
            Name=File Manager
            Comment=Access and organize files
            Keywords=folder;manager;explore;disk;filesystem;
            Exec=nautilus --new-window %U
            Icon=org.gnome.Nautilus
            Terminal=false
            Type=Application
            Categories=GNOME;GTK;Utility;Core;FileManager;
            Actions=new-window;open-downloads;

            [Desktop Action new-window]
            Name=New Window
            Exec=nautilus --new-window
            [Desktop Action open-downloads]
            Name=Open my Downloads folder
            Exec=nautilus /home/YOUR-USER-NAME/Downloads


            Replace YOUR-USER-NAME by your user-name in the last line.



          4. Save the file.


          5. Click on "Activities" and search for "File Manager". It should appear.


          6. Right click on the "File Manager" and select "Add to Favourites". It should be added to the dock.



          Now if you right click on the newly added File Manager icon in the dock, you should see a "Open my Downloads folder" option which should work as expected.



          enter image description here



          Similarly you can add shortcuts to other locations by adding new Desktop Actions and adding the name of the action to the Actions= line. For more info see this.






          share|improve this answer




























            11





            +25







            11





            +25



            11




            +25





            Follow the steps below.





            1. Create a .desktop file (say custom-filemanager.desktop) in ~/.local/share/applications. You can do this by running the following command in Terminal



              touch ~/.local/share/applications/custom-filemanager.desktop



            2. Open the .desktop file using a text-editor, for example by running



              gedit ~/.local/share/applications/custom-filemanager.desktop



            3. Add the following lines to the file:



              [Desktop Entry]
              Name=File Manager
              Comment=Access and organize files
              Keywords=folder;manager;explore;disk;filesystem;
              Exec=nautilus --new-window %U
              Icon=org.gnome.Nautilus
              Terminal=false
              Type=Application
              Categories=GNOME;GTK;Utility;Core;FileManager;
              Actions=new-window;open-downloads;

              [Desktop Action new-window]
              Name=New Window
              Exec=nautilus --new-window
              [Desktop Action open-downloads]
              Name=Open my Downloads folder
              Exec=nautilus /home/YOUR-USER-NAME/Downloads


              Replace YOUR-USER-NAME by your user-name in the last line.



            4. Save the file.


            5. Click on "Activities" and search for "File Manager". It should appear.


            6. Right click on the "File Manager" and select "Add to Favourites". It should be added to the dock.



            Now if you right click on the newly added File Manager icon in the dock, you should see a "Open my Downloads folder" option which should work as expected.



            enter image description here



            Similarly you can add shortcuts to other locations by adding new Desktop Actions and adding the name of the action to the Actions= line. For more info see this.






            share|improve this answer















            Follow the steps below.





            1. Create a .desktop file (say custom-filemanager.desktop) in ~/.local/share/applications. You can do this by running the following command in Terminal



              touch ~/.local/share/applications/custom-filemanager.desktop



            2. Open the .desktop file using a text-editor, for example by running



              gedit ~/.local/share/applications/custom-filemanager.desktop



            3. Add the following lines to the file:



              [Desktop Entry]
              Name=File Manager
              Comment=Access and organize files
              Keywords=folder;manager;explore;disk;filesystem;
              Exec=nautilus --new-window %U
              Icon=org.gnome.Nautilus
              Terminal=false
              Type=Application
              Categories=GNOME;GTK;Utility;Core;FileManager;
              Actions=new-window;open-downloads;

              [Desktop Action new-window]
              Name=New Window
              Exec=nautilus --new-window
              [Desktop Action open-downloads]
              Name=Open my Downloads folder
              Exec=nautilus /home/YOUR-USER-NAME/Downloads


              Replace YOUR-USER-NAME by your user-name in the last line.



            4. Save the file.


            5. Click on "Activities" and search for "File Manager". It should appear.


            6. Right click on the "File Manager" and select "Add to Favourites". It should be added to the dock.



            Now if you right click on the newly added File Manager icon in the dock, you should see a "Open my Downloads folder" option which should work as expected.



            enter image description here



            Similarly you can add shortcuts to other locations by adding new Desktop Actions and adding the name of the action to the Actions= line. For more info see this.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Dec 11 '17 at 17:16

























            answered Dec 11 '17 at 15:53









            pomskypomsky

            30.7k1194127




            30.7k1194127

























                2














                It's not prefect for what you seek, but you might be interested in the Gno-Menu extension.



                The extension adds a quite configurable menu. The following shows it's default:



                enter image description here



                The recent documents I have accessed are shown on the right. The shortcuts on the left are set to the Places of Nautilus. The highlighted folder shortcut is to a folder I have "pinned" in Nautilus.



                The Recents overview does not seem to support viewed folders. I don't know how the "Link to Intro etc." link got in there. Creating a new link to a folder and opening it did not put the folder there, and roaming in Nautilus does not affect Recents (until you open a file).



                The right-hand side can also be configured to show your Favorites from the overview, where you could then add .desktop entries for Nautilus to open specific folders. (See pomsky's answer, but use Exec=nautilus /home/user/folder/ --new-window %U and include only the [Desktop Entry] part.)






                share|improve this answer






























                  2














                  It's not prefect for what you seek, but you might be interested in the Gno-Menu extension.



                  The extension adds a quite configurable menu. The following shows it's default:



                  enter image description here



                  The recent documents I have accessed are shown on the right. The shortcuts on the left are set to the Places of Nautilus. The highlighted folder shortcut is to a folder I have "pinned" in Nautilus.



                  The Recents overview does not seem to support viewed folders. I don't know how the "Link to Intro etc." link got in there. Creating a new link to a folder and opening it did not put the folder there, and roaming in Nautilus does not affect Recents (until you open a file).



                  The right-hand side can also be configured to show your Favorites from the overview, where you could then add .desktop entries for Nautilus to open specific folders. (See pomsky's answer, but use Exec=nautilus /home/user/folder/ --new-window %U and include only the [Desktop Entry] part.)






                  share|improve this answer




























                    2












                    2








                    2







                    It's not prefect for what you seek, but you might be interested in the Gno-Menu extension.



                    The extension adds a quite configurable menu. The following shows it's default:



                    enter image description here



                    The recent documents I have accessed are shown on the right. The shortcuts on the left are set to the Places of Nautilus. The highlighted folder shortcut is to a folder I have "pinned" in Nautilus.



                    The Recents overview does not seem to support viewed folders. I don't know how the "Link to Intro etc." link got in there. Creating a new link to a folder and opening it did not put the folder there, and roaming in Nautilus does not affect Recents (until you open a file).



                    The right-hand side can also be configured to show your Favorites from the overview, where you could then add .desktop entries for Nautilus to open specific folders. (See pomsky's answer, but use Exec=nautilus /home/user/folder/ --new-window %U and include only the [Desktop Entry] part.)






                    share|improve this answer















                    It's not prefect for what you seek, but you might be interested in the Gno-Menu extension.



                    The extension adds a quite configurable menu. The following shows it's default:



                    enter image description here



                    The recent documents I have accessed are shown on the right. The shortcuts on the left are set to the Places of Nautilus. The highlighted folder shortcut is to a folder I have "pinned" in Nautilus.



                    The Recents overview does not seem to support viewed folders. I don't know how the "Link to Intro etc." link got in there. Creating a new link to a folder and opening it did not put the folder there, and roaming in Nautilus does not affect Recents (until you open a file).



                    The right-hand side can also be configured to show your Favorites from the overview, where you could then add .desktop entries for Nautilus to open specific folders. (See pomsky's answer, but use Exec=nautilus /home/user/folder/ --new-window %U and include only the [Desktop Entry] part.)







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Dec 17 '17 at 12:46

























                    answered Dec 15 '17 at 13:37









                    RasmusRasmus

                    3,66492852




                    3,66492852























                        1














                        As we can pin only Application to Gnome Dock, the best available option here is creating an application launcher that will open the favorite directory directly with a single mouse click.



                        So in order to do that navigate to activities and search for "Main menu". Now you will get a window titled Main menu.



                        Click on New item. and You will get a small window and fill the fields like described below.



                        In the given example i am pinning my Videos directory to Dock.



                        enter image description here



                        And now it will be shown at the bottom of the main menu window like this



                        enter image description here.



                        Click on close button and again go to activities and search for the the "Name" provided. In my case its "My Videos". Single click on that and just drag and drop it to the Gnome dock.



                        Now You will get the shortcut on your Dock.



                        enter image description here



                        If you click on that you will get your favorite directory which you set opened by nautilus.



                        Tweaks



                        You can do more tweaks like changing the icon of the application launcher you want while creating the shortcut of even after creating the shortcut and pinning it.



                        After tweaking my shortcut(My Videos) is like this.



                        enter image description here






                        share|improve this answer






























                          1














                          As we can pin only Application to Gnome Dock, the best available option here is creating an application launcher that will open the favorite directory directly with a single mouse click.



                          So in order to do that navigate to activities and search for "Main menu". Now you will get a window titled Main menu.



                          Click on New item. and You will get a small window and fill the fields like described below.



                          In the given example i am pinning my Videos directory to Dock.



                          enter image description here



                          And now it will be shown at the bottom of the main menu window like this



                          enter image description here.



                          Click on close button and again go to activities and search for the the "Name" provided. In my case its "My Videos". Single click on that and just drag and drop it to the Gnome dock.



                          Now You will get the shortcut on your Dock.



                          enter image description here



                          If you click on that you will get your favorite directory which you set opened by nautilus.



                          Tweaks



                          You can do more tweaks like changing the icon of the application launcher you want while creating the shortcut of even after creating the shortcut and pinning it.



                          After tweaking my shortcut(My Videos) is like this.



                          enter image description here






                          share|improve this answer




























                            1












                            1








                            1







                            As we can pin only Application to Gnome Dock, the best available option here is creating an application launcher that will open the favorite directory directly with a single mouse click.



                            So in order to do that navigate to activities and search for "Main menu". Now you will get a window titled Main menu.



                            Click on New item. and You will get a small window and fill the fields like described below.



                            In the given example i am pinning my Videos directory to Dock.



                            enter image description here



                            And now it will be shown at the bottom of the main menu window like this



                            enter image description here.



                            Click on close button and again go to activities and search for the the "Name" provided. In my case its "My Videos". Single click on that and just drag and drop it to the Gnome dock.



                            Now You will get the shortcut on your Dock.



                            enter image description here



                            If you click on that you will get your favorite directory which you set opened by nautilus.



                            Tweaks



                            You can do more tweaks like changing the icon of the application launcher you want while creating the shortcut of even after creating the shortcut and pinning it.



                            After tweaking my shortcut(My Videos) is like this.



                            enter image description here






                            share|improve this answer















                            As we can pin only Application to Gnome Dock, the best available option here is creating an application launcher that will open the favorite directory directly with a single mouse click.



                            So in order to do that navigate to activities and search for "Main menu". Now you will get a window titled Main menu.



                            Click on New item. and You will get a small window and fill the fields like described below.



                            In the given example i am pinning my Videos directory to Dock.



                            enter image description here



                            And now it will be shown at the bottom of the main menu window like this



                            enter image description here.



                            Click on close button and again go to activities and search for the the "Name" provided. In my case its "My Videos". Single click on that and just drag and drop it to the Gnome dock.



                            Now You will get the shortcut on your Dock.



                            enter image description here



                            If you click on that you will get your favorite directory which you set opened by nautilus.



                            Tweaks



                            You can do more tweaks like changing the icon of the application launcher you want while creating the shortcut of even after creating the shortcut and pinning it.



                            After tweaking my shortcut(My Videos) is like this.



                            enter image description here







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Dec 16 '17 at 15:37

























                            answered Dec 16 '17 at 10:12









                            RooneyRooney

                            565418




                            565418






























                                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%2f966740%2fhow-do-i-pin-my-favorite-folders-in-ubuntu-dock-like-in-windows%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

                                How to make a Squid Proxy server?

                                Is this a new Fibonacci Identity?

                                19世紀