This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Custom K-Menu Problem with $XDG_CONFIG_DIRS (KDE3.5)

Tags: None
(comma "," separated)
mrnick1234567
Registered Member
Posts
5
Karma
0
OS
Hello,

I am trying to customize the KMenu for a bunch of users on KDE3.5 running on CentOS 5.3. I want to do this via central config files on a shared mount point to save making changes to each machine.


After looking at
http://docs.kde.org/stable/en/kdebase-r ... -menu.html

TO change the menu layout I imagine I put a custom application.menu and .desktop related files here:

$KDEDIR/etc/xdg/menus
$KDEDIR/share/applications


I setenv KDEDIR to a test location (/disk1/kdetest) and running:

kde-config --path xdgdata-apps

lists...

/disk1/kdetest/share/applications/

as one of the locations which is what I expected. (i,e, KDE is looking in that dir for files)



However running:

kde-config --path xdgconf-menu

just gives just the standard locations..

/etc/kde/xdg/menus/
/etc/xdg/menus/
/usr/people/systest1/.config/menus/ (the users home)

There is no mention of the $KDEDIRS location which should be
/disk1/kdetest/etc/xdg/menus/



I tried setting KDE_CONFIG_DIRS to all the paths manually:

setenv XDG_CONFIG_DIRS /disk1/kdetest/etc/xdg/menus/:/etc/kde/xdg/menus/:/etc/xdg/menus/:/usr/people/systest1/.config/menus/


but then

kde-config --path xdgconf-menu

just gives the users home:

/usr/people/systest1/.config/menus/


Any ideas whay I setting KDE_CONFIG_DIRS doesn't work?



Nick
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You need to set the XDG_DATA_DIRS environment variable. In addition, KDEDIR should point to the main location where KDE is installed, and KDEDIRS can include multiple directories ( usually including what KDEDIR already has ) otherwise the system can have issues starting KDE up, finding plugins / protocols / etc.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]