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

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.

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

  • 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
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/

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.