Date: Mon, 13 Apr 2009 23:54:34 -0400 From: Joe Marcus Clarke <marcus@marcuscom.com> To: Daichi GOTO <daichi@ongs.co.jp> Cc: gnome@freebsd.org Subject: Re: Suggest: gdm_lang flag for gdm startup language Message-ID: <1239681274.1304.93.camel@shumai.marcuscom.com> In-Reply-To: <49E3FC71.7090904@ongs.co.jp> References: <49E3FC71.7090904@ongs.co.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-cOJDOONPGidFkDxsaMLv Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2009-04-14 at 12:01 +0900, Daichi GOTO wrote: > Hi gnome guys, >=20 > 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=3D"ja_JP.UTF-8" to /etc/rc.conf is anwser. >=20 > 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 >=20 > Thanks :) >=20 >=20 > --- gdm.orig 2009-04-14 11:55:01.000000000 +0900 > +++ gdm 2009-04-14 11:54:36.000000000 +0900 > @@ -15,6 +15,7 @@ >=20 > gdm_enable=3D${gdm_enable-${gnome_enable}} > gdm_preserve_base_pam_conf=3D${gdm_preserve_base_pam_conf-NO} > +gdm_lang=3D${gdm_lang-${LANG}} >=20 > export PATH=3D/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/s= bin >=20 > @@ -54,7 +55,7 @@ > sleep 1 > iter=3D$(expr ${iter} + 1) > done > - ${command} ${gdm_flags} ) & > + LANG=3D${gdm_lang} ${command} ${gdm_flags} ) & > } >=20 > load_rc_config ${name} >=20 >=20 --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-cOJDOONPGidFkDxsaMLv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAknkCPgACgkQb2iPiv4Uz4cc6gCfRjwrrUJK7890iqbnZdYpnWAm DWYAnR+S1dY/kCQ9mlARbjSzzBQm/qrF =9kTq -----END PGP SIGNATURE----- --=-cOJDOONPGidFkDxsaMLv--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1239681274.1304.93.camel>