[Kde-kiosk] how to force users to log into KDE (modify KDM menu)

Russell Brown russell at lls.lls.com
Thu Jun 23 11:08:42 CEST 2005


Quoth Oswald Buddenhagen.....
>On Wed, Jun 22, 2005 at 05:17:39PM +0100, Russell Brown wrote:
>> So.  I would assume from all that that I could put my .desktop files
>> in the "config dir".
>> 	/usr/share/config/kdm/sessions
>> 
>yup. unless you have a weirdo setup. kdm_config does not obey all rules
>of finding config dirs, e.g., it does not know /etc/kderc. so in some
>cases it might disagree with kde-config. fixing this is todo.
>what kdm really thinks can be figured out by starting it with -debug 2
>and reading the [sys]log.

FWIW, -debug 2 doesn't seem enough, I have to go to -debug 8 before
there's any mention of "/usr/share/xsessions" (the effective config dir
on my system) in the logs.

Which bit of the kdm debug output is definitive?  (I'll write a
mini-KDM-Kiosk-HOWTO and post to this list under a different thread and
a followup on kde-bugs when it's all working).

Looking for /usr/share/xsessions in the logs I get:

...
debug:Jun 23 09:49:50 lapcat kdm[5406]:  -> "/usr/share/xsessions"
debug:Jun 23 09:49:59 lapcat kdm: :0[5436]: sending string "/usr/share/xsessions" to greeter for display :0
debug:Jun 23 09:49:59 lapcat kdm_greet[5454]:  -> '/usr/share/xsessions'
...

But there's loads of output for kdm_greet and I can't see a way of
determining the sessions config path unless you know it already.

>as the readme states, you have to make the sessions dir in the config
>dir known to kdm, unless your distributor did it for you already. your's
>didn't.

As described above.  Working out the "config dir known to kdm" is not
trivial :-(

>> [Desktop Entry]
>> Hidden=True
>>  
>that's the minor syntax error i was suspecting ... kconfig accepts only
>lowercase "true", "on", "yes" and non-zero integers ...

Ah....  yes....  mea culpa.  It *does* say "Hidden=true" in the README.
I'll go outside and slap myself round the head several times with a wet
herring :-)

So....  if I can work out how to tell folk how to determine kdm's
session config path and how to disable the "Switch User" menu option
(Oswald did intimate this wasn't possible as yet) then we can get to a
kiosked kdm.  Any further thoughts on these Oswald?

-- 
 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