Web lists-archives.com

Re: [kde] menu customiization

On Thursday, 2014-06-05, 15:34:37, Stephen Dowdy wrote:

> /etc/xdg would be nice, but it's not in the default XDG_DATA_DIRS path.
>     $ kde4-config --types | grep xdg
>     xdgconf-autostart - XDG autostart directory
>     xdgconf-menu - XDG Menu layout (.menu files)
>     xdgdata-apps - XDG Application menu (.desktop files)
>     xdgdata-dirs - XDG Menu descriptions (.directory files)
>     xdgdata-icon - XDG Icons
>     xdgdata-mime - XDG Mime Types
>     xdgdata-pixmap - Legacy pixmaps
>     $ kde4-config --path xdgdata-apps
> Is that path that will be used.  I choose to use
> /usr/local/share/applications, as it's NFS mounted to all
> (most) user systems in my environment.  I'm not sure of the
> best/recommended way to modify this path via scripts/config at KDE
> startup time, but 'startkde' does this:
>     # Make sure that D-Bus is running
>     if test -z "$XDG_DATA_DIRS"; then
>         XDG_DATA_DIRS="`kde4-config
> --prefix`/share:/usr/share:/usr/local/share" export XDG_DATA_DIRS
>     fi
> i.e. it looks hardcoded w/o a good site-specific way to add to it).

This is only activated if the XDG_DATA_DIRS is not set.
/usr/share:/usr/local/share are the default based on the XDG directory 
specification, so these two paths would be searched even when the variable is 
unset or empty.

> If you edit startkde to prepend "/etc/xdg/share/" (which to me is
> totally obvious, and i was surprised it wasn't there)

/etc(xdg is the default for $XDG_CONFIG_DIRS

Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring

Attachment: signature.asc
Description: This is a digitally signed message part.

This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.