From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OIVRHu4b5l9DQQAA0tVLHw (envelope-from ) for ; Fri, 25 Dec 2020 17:05:50 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2LskGu4b5l9JUAAAbx9fmQ (envelope-from ) for ; Fri, 25 Dec 2020 17:05:50 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 19C509403CD for ; Fri, 25 Dec 2020 17:05:49 +0000 (UTC) Received: from localhost ([::1]:55566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ksqXD-0006fH-L1 for larch@yhetil.org; Fri, 25 Dec 2020 12:05:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ksqX5-0006eb-0K for help-guix@gnu.org; Fri, 25 Dec 2020 12:05:39 -0500 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:44985) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ksqX2-0000Gc-Oz for help-guix@gnu.org; Fri, 25 Dec 2020 12:05:38 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4D2YH00g1nz1rtMh for ; Fri, 25 Dec 2020 18:05:31 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4D2YGz6r3Jz1qr3x for ; Fri, 25 Dec 2020 18:05:31 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 4NPbPBBKYuSR for ; Fri, 25 Dec 2020 18:05:31 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-188-174-56-225.dynamic.mnet-online.de [188.174.56.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Fri, 25 Dec 2020 18:05:31 +0100 (CET) Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id 0838E60258 for ; Fri, 25 Dec 2020 18:08:17 +0100 (CET) Subject: Re: Integrate Guix GUI programs into foreign distro's desktop? To: help-guix@gnu.org References: From: Hartmut Goebel Organization: crazy-compilers.com Message-ID: 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 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-GB Received-SPF: none client-ip=2001:a60:0:28:0:1:25:1; envelope-from=h.goebel@crazy-compilers.com; helo=mail-out.m-online.net X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-1.561, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 19C509403CD X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: mw1yZJiDhbvn 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 |