menu customiization
Kevin Krammer
krammer at kde.org
Fri Jun 6 06:39:48 BST 2014
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
Cheers,
Kevin
--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde/attachments/20140606/bd7c3e23/attachment.sig>
-------------- next 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.
More information about the kde
mailing list