! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Patch for xfce menu module to use Try Exec
Status:
RESOLVED: FIXED
Product:
Xfdesktop
Component:
General

Comments

Description Olivier Fourdan editbugs 2006-06-05 12:15:30 CEST
Following my own ML message, the attached patch makes xfce menu check for the executable in the path only for the "TryExec" field.

According to the standard specifications [1]:

TryExec: File name of a binary on disk used to determine if the program is actually installed. If not, entry may not show in menus, etc.
Exec:	 Program to execute, possibly with arguments.

The following patch does just that, if TryExec is present, then if checks for the executable presence and show or hide the entry based on the result, but does not check for the existence of each and every executable defined by the various menus.
Comment 1 Olivier Fourdan editbugs 2006-06-05 12:15:59 CEST
Created attachment 593 
Patch described above.
Comment 2 Brian J. Tarricone (not reading bugmail) 2006-06-07 04:24:21 CEST
committed

Bug #1895

Reported by:
Olivier Fourdan
Reported on: 2006-06-05
Last modified on: 2009-07-14

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
0 users

Version

Attachments

Patch described above. (3.08 KB, patch)
2006-06-05 12:15 CEST , Olivier Fourdan
no flags

Additional information