From mboxrd@z Thu Jan 1 00:00:00 1970 From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) Subject: Re: Xfce4 localization in Guix System for only one exact user Date: Mon, 05 Aug 2019 08:01:28 +0800 Message-ID: <87v9vco4yv.fsf@member.fsf.org> References: <35D02456-E3DA-4D6A-A3C9-69FFB430A0CE@lepiller.eu> <86d4f6ba9c399b811c852ca5494f3b46@disroot.org> <9539fd6de3213e30807d00f0a1e77aae@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37734) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huQRb-0006S6-S1 for help-guix@gnu.org; Sun, 04 Aug 2019 20:01:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1huQRa-0002bA-NH for help-guix@gnu.org; Sun, 04 Aug 2019 20:01:43 -0400 Received: from rezeros.cc ([45.76.207.221]:41280) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1huQRa-0002ZS-Ar for help-guix@gnu.org; Sun, 04 Aug 2019 20:01:42 -0400 In-Reply-To: <9539fd6de3213e30807d00f0a1e77aae@disroot.org> (znavko's message of "Sat, 03 Aug 2019 09:01:41 +0000") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: znavko@disroot.org Cc: help-guix@gnu.org znavko@disroot.org writes: > Yes, Julien, you are right! > Changing config file to this: > > (operating-system ... > (locale "ru_RU.utf8")) > > and running as root: > > # guix pull > # guix package -u > # guix system reconfigure /etc/config.scm > # guix package -u > > made all my applications work on Russian: Xfce, Gimp, LibreOffice, Audaci= ty and so on: > > http://0x0.st/zOsk.png Yes, this changes the "LANG" system wide, in /etc/environment. > > But the next question is: how to make Russian environment only for define= d user, not for all users? > > You said, my DM may have it. I use Slim and did not found such > configs. Also `guix search xfce` did not display something like > xfce4-settings. And I did not found language settings in xfce settings > manager. > > My question rests unanswered. You can create a =E2=80=98.xsession=E2=80=99 file in that user=E2=80=99s ho= me directory, with something like: #!/bin/sh export LANG=3Dru_RU.utf8 exec "$@" And make it executable by "chmod +x ~/.xsession". Then when that user login, the =E2=80=98.xsession=E2=80=99 will be executed. Hope this helps!