help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Integrate Guix GUI programs into foreign distro's desktop?


From: Hartmut Goebel
Subject: Re: Integrate Guix GUI programs into foreign distro's desktop?
Date: Fri, 25 Dec 2020 18:05:28 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0

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 |




reply via email to

[Prev in Thread] Current Thread [Next in Thread]