0

I am trying to make a .desktop file on my desktop which opens a window of the file manager of the desktop env I'm currently in (Nautilus for Ubuntu, PCManFM for LXDE) but my file doesn't seem to work:

[Desktop Entry]
Type=Application
X-Profiles=p0;p1;
Terminal=false
StartupNotify=false

[X-Action-Profile p0]
OnlyShowIn=LXDE;
Name=PCmanFM
Icon=pcmanfm
Exec=pcmanfm ~

[X-Action-Profile p1]
OnlyShowIn=Unity;
Name=Nautilus
Icon=nautilus
Exec=nautilus ~

Is the use of X-Profilekey deprecated?
Do I need to supply a default Exec out of the profiles paragraphs?
I know from there that I can make it a right-click quicklist, but I want it to only open a window of the current file-manager.

joH1
  • 113

1 Answers1

2

X-Action-Profile is not part of the Desktop Entry Specification but seems to be an extension by PCManFM. It doesn't work with most other programs.

Using

sh -c 'xdg-open "$HOME"'

as command for Exec should work.

For the icon the Icon Naming Specification defines system-file-manager as standard icon name so that should work with most icon themes