xdg question w.r.t cmake

Alexander Neundorf neundorf at kde.org
Tue Jul 24 22:56:13 BST 2007


On Monday 23 July 2007 23:10, Thiago Macieira wrote:
> Alexander Neundorf wrote:
> >Hi,
> >
> >in FindKDE4Internal.cmake we have:
> >
> >_set_fancy(XDG_APPS_INSTALL_DIR
> > "${SHARE_INSTALL_PREFIX}/applications/kde4" ...
> > _set_fancy(XDG_DIRECTORY_INSTALL_DIR
> > "${SHARE_INSTALL_PREFIX}/desktop-directories" ...
> > _set_fancy(XDG_MIME_INSTALL_DIR
> > "${SHARE_INSTALL_PREFIX}/mime/packages" ...
> >
> >How related are these ?
> >Would it make sense to give them a common base install directory, which
> > could then be different from the KDE share install dir ?
> >
> >How related are shared-mime-info, the icon cache and e.g. xdg-utils ?
> >Would it make sense to put the support stuff for them (macros, finding
> > the executables, etc.) in one common FindXdg.cmake file ?
>
> Reading of those is controlled by $XDG_CONFIG_DIRS and $XDG_DATA_DIRS (the
> latter, int his case). Which means that whatever we install to, it must
> be loaded in those variables.

$XDG_CONFIG_DIRS and $XDG_DATA_DIRS are environment variables here, right ?
What do you mean with "Reading of those" ?

> Third-party applications are supposed to ignore those variables when
> installing and install directly to the default locations. If the user
> removed the default locations from $XDG_*_DIRS, he must have a very good
> reason to.
>
> KDE, however, doesn't have to install to the default locations, since KDE
> is the desktop. So I say the code in the CMake script is correct: we
> install to KDE's installation prefix. Installing to a separate prefix
> doesn't seem very useful or interesting to us.

Ok.

> To be noted:
> - like I said, $XDG_*_DIRS must include the location where KDE installed
> to. So if the user installed somewhere else than /usr or /usr/local, the
> variables MUST be modified.

The environment variables you mean ?

> I just don't know if we should do it in 
> startkde or if we should force the user to do it.

Any opinion whether it would make sense to put the macros for the mimetypes, 
the icon cache and maybe also xdg-utils (not used by KDE AFAIK ?) into a 
FindXdg.cmake or would this be wrong ?

Bye
Alex






More information about the kde-core-devel mailing list