FS#20109 - [kdebase-workspace] kdm not load non-english locales

Attached to Project: Arch Linux
Opened by Michał Maciej Różański (2M1R) - Thursday, 08 July 2010, 10:49 GMT
Last edited by Tom Gundersen (tomegun) - Thursday, 23 June 2011, 14:00 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Tom Gundersen (tomegun)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
kdm not load non-english locales at start. Line 10 in /etc/rc.d/kdm is wrong.

Additional info:
Old script:

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

PID=$(pidof -o %PPID /usr/bin/kdm)
case "$1" in
start)
stat_busy "Starting KDE Desktop Manager"
[ -z "$PID" ] && /usr/bin/kdm &>/dev/null
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon kdm
stat_done
fi
;;
stop)
stat_busy "Stopping KDE Desktop Manager"
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon kdm
stat_done
fi
;;
restart)
$0 stop
sleep 3
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0


Steps to reproduce:

Line:
[ -z "$PID" ] && /usr/bin/kdm &>/dev/null

must be change to:
[ -z "$PID" ] && LANG="$LOCALE" /usr/bin/kdm &>/dev/null
This task depends upon

Closed by  Tom Gundersen (tomegun)
Thursday, 23 June 2011, 14:00 GMT
Reason for closing:  No response
Comment by Ionut Biru (wonder) - Thursday, 08 July 2010, 11:14 GMT
there are two ways of running kdm. as a daemon in rc.conf (which kinda suck) and inittab way(proper way imo)
Comment by Pierre Schmitz (Pierre) - Thursday, 08 July 2010, 12:46 GMT
Indeed; kdm shouldn't be run as daemon via rc.conf. People want to kept it for backwards compatibility though. (using kdm this way causes other problems, too)
Comment by Greg (dolby) - Friday, 04 March 2011, 04:52 GMT
Cant the /etc/rc.d/kdm file be dropped completely?
Comment by Tom Gundersen (tomegun) - Sunday, 08 May 2011, 18:32 GMT
Have you tried setting DAEMON_LOCALE="yes" in rc.conf? Does using inittab fix the problem (I would be surprised if it does, so please let me know).

Loading...