Suggest: gdm_lang flag for gdm startup language
Joe Marcus Clarke
marcus at marcuscom.com
Tue Apr 14 03:54:36 UTC 2009
On Tue, 2009-04-14 at 12:01 +0900, Daichi GOTO wrote:
> Hi gnome guys,
>
> I want to suggest follow patch to /usr/local/etc/rc.d/gdm
> RGng script setting default startup language. With follow
> patch, someone want to use gdm as non-English default, e.g.,
> adding gdm_lang="ja_JP.UTF-8" to /etc/rc.conf is anwser.
>
> It is bothering me every day first time I must set Japanese
> when gdm login display. Do you have any ideas? If you have
> no objection, I want to commit to /usr/ports/x11/gdm/files/gdm.in
We already have a procedure for this documented on the FAQ:
http://www.freebsd.org/gnome/docs/faq2.html#q29
The /etc/profile method is preferred as there is already support for it
upstream.
Joe
>
> Thanks :)
>
>
> --- gdm.orig 2009-04-14 11:55:01.000000000 +0900
> +++ gdm 2009-04-14 11:54:36.000000000 +0900
> @@ -15,6 +15,7 @@
>
> gdm_enable=${gdm_enable-${gnome_enable}}
> gdm_preserve_base_pam_conf=${gdm_preserve_base_pam_conf-NO}
> +gdm_lang=${gdm_lang-${LANG}}
>
> export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
>
> @@ -54,7 +55,7 @@
> sleep 1
> iter=$(expr ${iter} + 1)
> done
> - ${command} ${gdm_flags} ) &
> + LANG=${gdm_lang} ${command} ${gdm_flags} ) &
> }
>
> load_rc_config ${name}
>
>
--
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20090414/8caf9ec3/attachment.pgp
More information about the freebsd-gnome
mailing list