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


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.

  • 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

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.

  • And what does the third argument (Resources) mean? – mook765 Sep 19 '18 at 19:14

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]
Exec=xdg-open /path/to/foobar

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]


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.