From: Brice Waegeneire <brice@waegenei.re>
To: Jonathan Frederickson <jonathan@terracrypt.net>
Cc: guix-devel@gnu.org,
Guix-devel <guix-devel-bounces+brice+lists=waegenei.re@gnu.org>
Subject: Re: native-search-paths and shepherd services (help wanted)
Date: Sat, 08 Feb 2020 19:39:59 +0000 [thread overview]
Message-ID: <e6f9244a8e73cb7f6032dc527408d44d@waegenei.re> (raw)
In-Reply-To: <f53966fe-f62c-4d3b-a008-c92d429ac940@www.fastmail.com>
On 2020-02-08 19:10, Jonathan Frederickson wrote:
> I'm still not quite sure I have a good understanding of when
> 'native-search-paths' applies and when it doesn't, but... at least
> setting the env var directly seems to work in this case.
I just learned about native-search-paths when looking into your issue so
I may be off about how it works...
What I understand is that native-search-paths add an entry to your
/etc/profile when installed - for your default user profile it's
$HOME/.guix-profile/etc/profile. In our case, when installed, minetest
sets the environment variable MINETEST_SUBGAME_PATH so the binary know
where to looks for the games. But when called directly, as it's the case
in a shepherd service, the /etc/profile file isn't sourced so the
environment variable isn't set. That's why we need to set it manually in
the service.
next prev parent reply other threads:[~2020-02-08 19:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-08 9:06 native-search-paths and shepherd services (help wanted) Jonathan Frederickson
2020-02-08 10:28 ` Brice Waegeneire
2020-02-08 19:10 ` Jonathan Frederickson
2020-02-08 19:39 ` Brice Waegeneire [this message]
2020-02-11 14:40 ` Ludovic Courtès
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=e6f9244a8e73cb7f6032dc527408d44d@waegenei.re \
--to=brice@waegenei.re \
--cc=guix-devel-bounces+brice+lists=waegenei.re@gnu.org \
--cc=guix-devel@gnu.org \
--cc=jonathan@terracrypt.net \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).