Xfce Forum

Sub domains
 

You are not logged in.

#1 2015-01-05 21:08:20

dtd
Member
Registered: 2011-12-08
Posts: 73

[Solved] add an item to 4.10 start menu

I am using FreeBSD 10.1. The application desktop entries are in /usr/local/share/applications on BSD systems. I installed xpdf and did not get an entry in the start menu. So I copy the desktop file from a plug-in that did install a start menu entry. Notecase was what I used as a pattern creating xpdf.desktop as:

Name=PDF viewer
Type=Application
Comment=PDF Viewer
Icon=xpdf
TryExec=xpdf
Exec=xpdf
Terminal=false
Categories=Application;Office;Utility;
MimeType=application/pdf
GenericName=Hierarchical PDF Viewer
X-Window-Icon=xpdf
X-Window-Icon-Dimmed=xpdf

I restarted the X session and then rebooted without any change to the start menu. ownership/permissions are the same. What more needs to be done? This all worked with an incrementally older xfce, e.g, 4.10 but 6-9 months older. Ditto for Xorg and FreeBSD (9.2).  Thanks for any thoughts.

Offline

#2 2015-01-06 02:55:38

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,996

Re: [Solved] add an item to 4.10 start menu

I can't get this desktop file to work unless I do 2 things to it:

- Start the file off with "[Desktop Entry]"
- delete the TryExec line

As per the desktop entry spec, the TryExec line is a:

Path to an executable file on disk used to determine if the program is actually installed. If the path is not an absolute path, the file is looked up in the $PATH environment variable. If the file is not present or if it is not executable, the entry may be ignored (not be used in menus, for example).

...and since I don't have xpdf installed, the file didn't work. Commenting out that line displays the entry. Is "xpdf" in your $PATH?

The final version of the desktop file that works for me is:

[Desktop Entry]
Name=PDF viewer
Type=Application
Comment=PDF Viewer
Icon=xpdf
#TryExec=xpdf
Exec=xpdf
Terminal=false
Categories=Application;Office;Utility;
MimeType=application/pdf
GenericName=Hierarchical PDF Viewer
X-Window-Icon=xpdf
X-Window-Icon-Dimmed=xpdf

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2015-01-06 07:12:47

dtd
Member
Registered: 2011-12-08
Posts: 73

Re: [Solved] add an item to 4.10 start menu

Thank you, that works for me also listing xpdf in Accessories and Office. In reviewing the file I used as a pattern, I messed up, as notecase.desktop does have the [Desktop Entry] line. I appreciate your help

Offline

Board footer

Powered by FluxBB