https://bugzilla.novell.com/show_bug.cgi?id=339857 Summary: It's impossible to define parameters to be passed to the local X server when using "kdm" Product: openSUSE 10.3 Version: Final Platform: x86-64 OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: KDE AssignedTo: kde-maintainers@suse.de ReportedBy: mh@novell.com QAContact: qa@suse.de Found By: --- When one is using "kdm" as DISPLAYMANAGER, with the current logic of executing "/opt/kde3/share/apps/kdm/read_sysconfig.sh" when "kdm" is run, followed by reading "/var/adm/kdm/kdmrc.sysconfig" (generated by read_sysconfig.sh), and then reading "/opt/kde3/share/config/kdm/kdmrc", it appears impossible to e.g. define some "ServerArgsLocal=" to be passed to the local X server. It looks like the first location where a variable is defined wins :-( I've worked-around this by defining a new variable in /etc/sysconfig/displaymanager: ## Type: string ## Default: unset # # Initialize this variable to take some options you want to pass to # the local X server; these options will be put into the generated # display manager config. An example for this is defining the DPI value # the server should use. DISPLAYMANAGER_XSERVERARGSLOCAL="" and then applied the following patch to /opt/kde3/share/apps/kdm/read_sysconfig.sh: --- /opt/kde3/share/apps/kdm/read_sysconfig.sh.orig 2007-09-25 23:54:12.000000000 +0200 +++ /opt/kde3/share/apps/kdm/read_sysconfig.sh 2007-11-07 16:05:18.492595400 +0100 @@ -97,11 +97,14 @@ if [ "$DISPLAYMANAGER_AUTOLOGIN" ]; then else echo "AutoLoginEnable=false" fi -if [ "$DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN" = "yes" ]; then - echo "ServerArgsLocal=" -else - echo "ServerArgsLocal=-nolisten tcp" +ServerArgsLocal="" +if [ "$DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN" != "yes" ]; then + ServerArgsLocal="-nolisten tcp" +fi +if [ -n "$DISPLAYMANAGER_XSERVERARGSLOCAL" ]; then + ServerArgsLocal="${ServerArgsLocal+ ${ServerArgsLocal} }$DISPLAYMANAGER_XSERVERARGSLOCAL" fi +echo "ServerArgsLocal=$ServerArgsLocal" if [ "$DISPLAYMANAGER_PASSWORD_LESS_LOGIN" = "yes" ]; then echo "NoPassEnable=true" echo "NoPassAllUsers=true" I just want to get feedback, if this looks like a possible route before attaching patches; if you like this approach, I'll create proper attachments to this bugzilla. Please advise! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.