Correct way to create a Desktop Entry file of Directory type?












4















What elements should I define in a Desktop Entry file of Directory type for xfce? Although it can be created using thunar file manager by right clicking on the folder, so what I want to know is that if its possible to create one manually.



I wish XFCE was well documented as other DEs










share|improve this question





























    4















    What elements should I define in a Desktop Entry file of Directory type for xfce? Although it can be created using thunar file manager by right clicking on the folder, so what I want to know is that if its possible to create one manually.



    I wish XFCE was well documented as other DEs










    share|improve this question



























      4












      4








      4


      1






      What elements should I define in a Desktop Entry file of Directory type for xfce? Although it can be created using thunar file manager by right clicking on the folder, so what I want to know is that if its possible to create one manually.



      I wish XFCE was well documented as other DEs










      share|improve this question
















      What elements should I define in a Desktop Entry file of Directory type for xfce? Although it can be created using thunar file manager by right clicking on the folder, so what I want to know is that if its possible to create one manually.



      I wish XFCE was well documented as other DEs







      xfce






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 28 '12 at 2:14







      Aman Sharma

















      asked Sep 27 '12 at 10:23









      Aman SharmaAman Sharma

      128211




      128211






















          4 Answers
          4






          active

          oldest

          votes


















          0














          You will find detailed information on desktop entry files here.



          I'm unable to find XFCE's desktop entry specifications, but in Gnome desktop entry specifications, the desktop entry for a directory must be ending with .directory, and not .desktop.






          share|improve this answer



















          • 1





            Actually that link is the origin of my question. I tried setting type to Directory but xfce perceives it as an invalid .desktop file and it does not recognize .directory.

            – Aman Sharma
            Sep 27 '12 at 12:32





















          0














          Create a symlink for example:



          ln -s /home/pi/resources /home/pi/Desktop/Course Resources



          The first mart is the folder you want to link and the second part is the link on the desktop.






          share|improve this answer


























          • And what does the third argument (Resources) mean?

            – mook765
            Sep 19 '18 at 19:14



















          0














          If I understand this correctly, Type=Directory does not create a launcher, but provides metadata for a menu.



          Although I couldn't find any official documentation how to create a directory launcher, this worked for me:



          [Desktop Entry]
          Name=foobar
          Exec=xdg-open /path/to/foobar
          Icon=folder
          Terminal=false
          Type=Application





          share|improve this answer































            0














            This is what I found. This will look and behave in nautilus/nemo like a normal folder instead of a symlink. Being a link it can have any name or image while being de facto a GUI folder. It can also link to a distant folder. And contrary to some solutions here, it will not open a new window if opened from nemo.



            [Desktop Entry]
            Name=Videos
            Icon=folder-video.png
            Type=Link
            URL=/mnt/HDD/Videos/

            #URL=sftp://192.168.1.7/mnt/HDD/Videos/





            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%2f193577%2fcorrect-way-to-create-a-desktop-entry-file-of-directory-type%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              4 Answers
              4






              active

              oldest

              votes








              4 Answers
              4






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              You will find detailed information on desktop entry files here.



              I'm unable to find XFCE's desktop entry specifications, but in Gnome desktop entry specifications, the desktop entry for a directory must be ending with .directory, and not .desktop.






              share|improve this answer



















              • 1





                Actually that link is the origin of my question. I tried setting type to Directory but xfce perceives it as an invalid .desktop file and it does not recognize .directory.

                – Aman Sharma
                Sep 27 '12 at 12:32


















              0














              You will find detailed information on desktop entry files here.



              I'm unable to find XFCE's desktop entry specifications, but in Gnome desktop entry specifications, the desktop entry for a directory must be ending with .directory, and not .desktop.






              share|improve this answer



















              • 1





                Actually that link is the origin of my question. I tried setting type to Directory but xfce perceives it as an invalid .desktop file and it does not recognize .directory.

                – Aman Sharma
                Sep 27 '12 at 12:32
















              0












              0








              0







              You will find detailed information on desktop entry files here.



              I'm unable to find XFCE's desktop entry specifications, but in Gnome desktop entry specifications, the desktop entry for a directory must be ending with .directory, and not .desktop.






              share|improve this answer













              You will find detailed information on desktop entry files here.



              I'm unable to find XFCE's desktop entry specifications, but in Gnome desktop entry specifications, the desktop entry for a directory must be ending with .directory, and not .desktop.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Sep 27 '12 at 10:50









              JanuaryJanuary

              25.6k116788




              25.6k116788








              • 1





                Actually that link is the origin of my question. I tried setting type to Directory but xfce perceives it as an invalid .desktop file and it does not recognize .directory.

                – Aman Sharma
                Sep 27 '12 at 12:32
















              • 1





                Actually that link is the origin of my question. I tried setting type to Directory but xfce perceives it as an invalid .desktop file and it does not recognize .directory.

                – Aman Sharma
                Sep 27 '12 at 12:32










              1




              1





              Actually that link is the origin of my question. I tried setting type to Directory but xfce perceives it as an invalid .desktop file and it does not recognize .directory.

              – Aman Sharma
              Sep 27 '12 at 12:32







              Actually that link is the origin of my question. I tried setting type to Directory but xfce perceives it as an invalid .desktop file and it does not recognize .directory.

              – Aman Sharma
              Sep 27 '12 at 12:32















              0














              Create a symlink for example:



              ln -s /home/pi/resources /home/pi/Desktop/Course Resources



              The first mart is the folder you want to link and the second part is the link on the desktop.






              share|improve this answer


























              • And what does the third argument (Resources) mean?

                – mook765
                Sep 19 '18 at 19:14
















              0














              Create a symlink for example:



              ln -s /home/pi/resources /home/pi/Desktop/Course Resources



              The first mart is the folder you want to link and the second part is the link on the desktop.






              share|improve this answer


























              • And what does the third argument (Resources) mean?

                – mook765
                Sep 19 '18 at 19:14














              0












              0








              0







              Create a symlink for example:



              ln -s /home/pi/resources /home/pi/Desktop/Course Resources



              The first mart is the folder you want to link and the second part is the link on the desktop.






              share|improve this answer















              Create a symlink for example:



              ln -s /home/pi/resources /home/pi/Desktop/Course Resources



              The first mart is the folder you want to link and the second part is the link on the desktop.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Oct 17 '14 at 15:20









              Luís de Sousa

              9,2011752103




              9,2011752103










              answered Oct 17 '14 at 14:18









              DirkDirk

              1




              1













              • And what does the third argument (Resources) mean?

                – mook765
                Sep 19 '18 at 19:14



















              • And what does the third argument (Resources) mean?

                – mook765
                Sep 19 '18 at 19:14

















              And what does the third argument (Resources) mean?

              – mook765
              Sep 19 '18 at 19:14





              And what does the third argument (Resources) mean?

              – mook765
              Sep 19 '18 at 19:14











              0














              If I understand this correctly, Type=Directory does not create a launcher, but provides metadata for a menu.



              Although I couldn't find any official documentation how to create a directory launcher, this worked for me:



              [Desktop Entry]
              Name=foobar
              Exec=xdg-open /path/to/foobar
              Icon=folder
              Terminal=false
              Type=Application





              share|improve this answer




























                0














                If I understand this correctly, Type=Directory does not create a launcher, but provides metadata for a menu.



                Although I couldn't find any official documentation how to create a directory launcher, this worked for me:



                [Desktop Entry]
                Name=foobar
                Exec=xdg-open /path/to/foobar
                Icon=folder
                Terminal=false
                Type=Application





                share|improve this answer


























                  0












                  0








                  0







                  If I understand this correctly, Type=Directory does not create a launcher, but provides metadata for a menu.



                  Although I couldn't find any official documentation how to create a directory launcher, this worked for me:



                  [Desktop Entry]
                  Name=foobar
                  Exec=xdg-open /path/to/foobar
                  Icon=folder
                  Terminal=false
                  Type=Application





                  share|improve this answer













                  If I understand this correctly, Type=Directory does not create a launcher, but provides metadata for a menu.



                  Although I couldn't find any official documentation how to create a directory launcher, this worked for me:



                  [Desktop Entry]
                  Name=foobar
                  Exec=xdg-open /path/to/foobar
                  Icon=folder
                  Terminal=false
                  Type=Application






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jun 12 '17 at 12:04









                  T ST S

                  1213




                  1213























                      0














                      This is what I found. This will look and behave in nautilus/nemo like a normal folder instead of a symlink. Being a link it can have any name or image while being de facto a GUI folder. It can also link to a distant folder. And contrary to some solutions here, it will not open a new window if opened from nemo.



                      [Desktop Entry]
                      Name=Videos
                      Icon=folder-video.png
                      Type=Link
                      URL=/mnt/HDD/Videos/

                      #URL=sftp://192.168.1.7/mnt/HDD/Videos/





                      share|improve this answer




























                        0














                        This is what I found. This will look and behave in nautilus/nemo like a normal folder instead of a symlink. Being a link it can have any name or image while being de facto a GUI folder. It can also link to a distant folder. And contrary to some solutions here, it will not open a new window if opened from nemo.



                        [Desktop Entry]
                        Name=Videos
                        Icon=folder-video.png
                        Type=Link
                        URL=/mnt/HDD/Videos/

                        #URL=sftp://192.168.1.7/mnt/HDD/Videos/





                        share|improve this answer


























                          0












                          0








                          0







                          This is what I found. This will look and behave in nautilus/nemo like a normal folder instead of a symlink. Being a link it can have any name or image while being de facto a GUI folder. It can also link to a distant folder. And contrary to some solutions here, it will not open a new window if opened from nemo.



                          [Desktop Entry]
                          Name=Videos
                          Icon=folder-video.png
                          Type=Link
                          URL=/mnt/HDD/Videos/

                          #URL=sftp://192.168.1.7/mnt/HDD/Videos/





                          share|improve this answer













                          This is what I found. This will look and behave in nautilus/nemo like a normal folder instead of a symlink. Being a link it can have any name or image while being de facto a GUI folder. It can also link to a distant folder. And contrary to some solutions here, it will not open a new window if opened from nemo.



                          [Desktop Entry]
                          Name=Videos
                          Icon=folder-video.png
                          Type=Link
                          URL=/mnt/HDD/Videos/

                          #URL=sftp://192.168.1.7/mnt/HDD/Videos/






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 6 hours ago









                          sinekonatasinekonata

                          364620




                          364620






























                              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%2f193577%2fcorrect-way-to-create-a-desktop-entry-file-of-directory-type%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

                              GameSpot

                              connect to host localhost port 22: Connection refused

                              Getting a Wifi WPA2 wifi connection