From: Hartmut Goebel <h.goebel@crazy-compilers.com>
To: help-guix@gnu.org
Subject: Re: Integrate Guix GUI programs into foreign distro's desktop?
Date: Fri, 25 Dec 2020 18:05:28 +0100 [thread overview]
Message-ID: <d0e81544-21e9-71bb-922d-73e0447b89ca@crazy-compilers.com> (raw)
In-Reply-To: <fc6304c6-4c56-9cdc-b04d-3b9de0dcb5c8@crazy-compilers.com>
Am 06.12.20 um 19:46 schrieb Hartmut Goebel:
> What is the correct way for doing so? What needs to be installed in the
> profile to make this work smoothly?
I made it work by adding the follwing code to ~/.bash_profile. This also
handles other env-vars and also the case one is running a login-shell in
an environment.
if [ -n "$GUIX_ENVIRONMENT" ] ; then
# should only come here if a login-shell is started within a guix
environ
_guix_profile="$GUIX_ENVIRONMENT"
elif [ -z "$GUIX_PROFILE" -a -r "$HOME/.guix-profile" ] ; then
_guix_profile="$HOME/.guix-profile"
elif [ -n "$GUIX_PROFILE" -a -r "$GUIX_PROFILE" ] ; then
_guix_profile="$GUIX_PROFILE"
fi
if [ -n "$_guix_profile" ] ; then
source "$_guix_profile/etc/profile"
if [ -r "$_guix_profile/lib/locale" ] ; then
export
GUIX_LOCPATH="$_guix_profile/lib/locale${GUIX_LOCPATH:+:}$GUIX_LOCPATH"
fi
if [ -r "$_guix_profile/share" ] ; then
export
XDG_DATA_DIRS="$_guix_profile/share${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS"
fi
if [ -r "$_guix_profile/etc/ssl/certs/ca-certificates.crt" ] ; then
export SSL_CERT_DIR="$_guix_profile/etc/ssl/certs"
export
SSL_CERT_FILE="$_guix_profile/etc/ssl/certs/ca-certificates.crt"
export GIT_SSL_CAINFO="$SSL_CERT_FILE"
fi
fi
unset _guix_profile
--
Regards
Hartmut Goebel
| Hartmut Goebel | h.goebel@crazy-compilers.com |
| www.crazy-compilers.com | compilers which you thought are impossible |
prev parent reply other threads:[~2020-12-25 17:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-06 18:46 Integrate Guix GUI programs into foreign distro's desktop? Hartmut Goebel
2020-12-06 19:41 ` Jérémy Korwin-Zmijowski
2020-12-06 23:27 ` Bonface M. K.
2020-12-07 7:58 ` Hartmut Goebel
2020-12-07 11:32 ` Bonface M. K.
2020-12-24 14:25 ` Hartmut Goebel
2020-12-24 17:43 ` Bonface M. K.
2020-12-07 14:13 ` John Soo
2020-12-25 17:05 ` Hartmut Goebel [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=d0e81544-21e9-71bb-922d-73e0447b89ca@crazy-compilers.com \
--to=h.goebel@crazy-compilers.com \
--cc=help-guix@gnu.org \
/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).