unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Fredrik Salomonsson <plattfot@posteo.net>
To: Julien Lepiller <julien@lepiller.eu>,
	help-guix@gnu.org, help-guix <help-guix@gnu.org>
Subject: Re: Yet another locale question on a foreign distro
Date: Sun, 31 Jan 2021 15:27:31 -0800	[thread overview]
Message-ID: <87h7mwptzw.fsf@posteo.net> (raw)
In-Reply-To: <E8F78C63-6289-4465-9351-6CBBD06D9DCD@lepiller.eu>

Hi Julien,

Julien Lepiller <julien@lepiller.eu> writes:

> Does gpg-agent change the locale of the system somehow? What's the locale it launches the pinentry with?

Kind of, it request the pinentry program to at least set LC_CTYPE and
LC_MESSAGES to the requested locale. Currently my pinentry-rofi ignore
these requests. I implemented them in case that was the issue, but still
the same issue. It was requesting to set en_US.UTF-8, e.g. my default
locale.

> Does it exist in $GUIX_LOCPATH?

It does, however you gave me a point in the right direction. The issue
was that the systemd gpg-agent.service unit that launches gpg-agent,
does not set $GUIX_LOCPATH. Which was why rofi failed to set the locale.

To fix it all I needed to do was to append that to the service file.

I.e run.
  systemctl --user edit gpg-agent.service

and add:
  [Service]
  Environment=GUIX_LOCPATH=%h/.guix-profile/lib/locale

Thanks for the help!

-- 
s/Fred[re]+i[ck]+/Fredrik/g


      reply	other threads:[~2021-01-31 23:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-31  6:06 Yet another locale question on a foreign distro Fredrik Salomonsson
2021-01-31 12:16 ` Julien Lepiller
2021-01-31 23:27   ` Fredrik Salomonsson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h7mwptzw.fsf@posteo.net \
    --to=plattfot@posteo.net \
    --cc=help-guix@gnu.org \
    --cc=julien@lepiller.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).