A lot of X ports do not ship with a .desktop file. It would be good to create desktop entries for these ports, so that the applications show up in the menus of fd.o-compliant desktop environments (such as GNOME, KDE, ...). To ease the task, this patch adds a DESKTOP_ENTRIES variable. Porters can now easily create and install one or more .desktop file for their port. The files are automatically added to the packing list. They are installed in DESKTOPDIR, which defaults to PREFIX/share/applications (path recommended by the fd.o spec). Although there should be no reason for an user or port to override DESKTOPDIR, the code supports any DESKTOPDIR, even if it's outside of PREFIX. Along with the patch, I provide an example use for x11/nvidia-settings.
I don't have any objections to this, but I prefer work in a freedesktop menu system out of the main ports, and install .desktop entries from separated ports. -- josemi
Responsible Changed From-To: freebsd-ports-bugs->portmgr portmgr territory.
State Changed From-To: open->analyzed Added to exp build. Thanks
State Changed From-To: analyzed->closed Committed. Thanks!