Created attachment 215796 [details] Base DESKTOPDIR on LOCALBASE instead of PREFIX The knob is currently defined thus: DESKTOPDIR?= ${PREFIX}/share/applications which tells ports to install the DESKTOP_ENTRIES where the rest of the port is installed. Instead, it probably should be: DESKTOPDIR?= ${LOCALBASE}/share/applications because, wherever a port installs its own bits, the desktop entries ought to be in the common location, where the desktop environments (KDE, Gnome, etc.) can find them. That is, DESKTOPDIR is more like SED or LDCONFIG -- referring to an existing path, rather than, what the port will create. The patch seems easy, but the discussion, probably, will not be...
That seems legit to me if the consumers only knows to look up for desktop files in localbase, if they can be configure to look elswhere then PREFIX is the right thing to use. example manpath can be configured so the manpages are installed in MANPREFIX which respect PREFIX