Bug 247429

Summary: DESKTOPDIR set incorrectly
Product: Ports & Packages Reporter: Mikhail Teterin <mi>
Component: Ports FrameworkAssignee: Port Management Team <portmgr>
Status: New ---    
Severity: Affects Only Me CC: ports-bugs
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Base DESKTOPDIR on LOCALBASE instead of PREFIX none

Description Mikhail Teterin freebsd_committer 2020-06-19 19:08:19 UTC
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...