[Kde-kiosk] Can one have multiple kdeglobals files?

Russell Brown russell at dmz.lls.com
Mon Dec 22 17:34:03 CET 2003


I'm getting very confused by kdeglobals :-( 

I'm trying to use a standard lockdown configuration structure on top of
the standard distribution stuff and then to relax some aspects by
pre-defining immutable thingies in a local configuration structure
(phew!  :-)

I'd better explain further....  I have the following structure:

	/conf/LOCALkde/share/.....  (A)
	/conf/MYSTDkde/share/.....  (B)
	/usr/share/.....            (C)

and KDEDIRS set to "/conf/LOCALkde:/conf/MYSTDkde:/usr"

I also have in /etc/kde3/system.kdeglobals (symlinked to /etc/kderc):

	[Directories][$i]
	dir_config=/conf/LOCALkde:/conf/MYSTDkde:/etc/kde3

Generally this works fine in that xterm.desktop (for example) will be
searched for in A, then B and then C.

However, kdeglobals doesn't seem to follow this rule :-( I would expect
a file /conf/LOCALkde/share/config/kdeglobals to be read and acted on
before /conf/MYSTDkde/shar/config/kdeglobals; however it isn't.

Setting the following in /conf/LOCALkde/share.../kdeglobals to

	[KDE Action Restrictions]
	shell_access[$i]=true

and /conf/MYSTDkde/share..../kdeglobals to

	[KDE Action Restrictions][$i]
	shell_access=false

and then doing "strace -eopen kreadconfig --group "KDE Action
Restrictions" --key shell_access" I get...

<snip>
open("/usr/lib/libfreetype.so.6", O_RDONLY) = 3
open("/etc/kde3/system.kdeglobals", O_RDONLY|O_LARGEFILE) = 3
open("/etc/kderc", O_RDONLY|O_LARGEFILE) = 3
open("/conf/MYSTDkde/share/config/kdeglobals", O_RDONLY|O_LARGEFILE) = 3
open("/conf/LOCALkde/share/config/kdeglobals", O_RDONLY|O_LARGEFILE) = 3
open("/home/russell/.kde/share/config/kdeglobals", O_RDONLY|O_LARGEFILE) = 3
false

So it's sort looking at the elements in the path the wrong way round and
says "false" when one would expect it to be "true".

If I switch the first two elements in KDEDIRS around so it's
"/conf/MYSTDkde:/conf/LOCALkde:/usr" then the strace produces:

<snip>
open("/usr/lib/libfreetype.so.6", O_RDONLY) = 3
open("/etc/kde3/system.kdeglobals", O_RDONLY|O_LARGEFILE) = 3
open("/etc/kderc", O_RDONLY|O_LARGEFILE) = 3
open("/conf/LOCALkde/share/config/kdeglobals", O_RDONLY|O_LARGEFILE) = 3
open("/conf/MYSTDkde/share/config/kdeglobals", O_RDONLY|O_LARGEFILE) = 3
open("/home/russell/.kde/share/config/kdeglobals", O_RDONLY|O_LARGEFILE) = 3
true

Which is weird.....  are the search path for kdeglobals meant to be the
opposite way around to everything else????  am I trying to do something
that KDE-Kiosk wasn't designed to do or just being a brainless idiot as
usual?

Thanks in Advance.

-- 
 Regards,
     Russell
 --------------------------------------------------------------------
| Russell Brown          | MAIL: russell at lls.com PHONE: 01780 471800 |
| Lady Lodge Systems     | WWW Work: http://www.lls.com              |
| Peterborough, England  | WWW Play: http://www.ruffle.me.uk         |
 --------------------------------------------------------------------


More information about the kde-kiosk mailing list