From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jorge P. de Morais Neto Subject: Re: Environment variables on GNOME on foreign distro (Debian) Date: Sat, 29 Feb 2020 14:21:56 -0300 Message-ID: <87k145gvgr.fsf@disroot.org> References: <87tv3hkndr.fsf@disroot.org> <87o8toio83.fsf@member.fsf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:60094) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j85oc-0003I2-FJ for help-guix@gnu.org; Sat, 29 Feb 2020 12:22:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j85ob-0005Re-0l for help-guix@gnu.org; Sat, 29 Feb 2020 12:22:14 -0500 Received: from knopi.disroot.org ([178.21.23.139]:58762) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j85oa-0005RL-EY for help-guix@gnu.org; Sat, 29 Feb 2020 12:22:12 -0500 In-Reply-To: <87o8toio83.fsf@member.fsf.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: =?utf-8?B?5a6L5paH5q2m?= Cc: help-guix@gnu.org Em [2020-02-24 seg 12:49:32+0800], =E5=AE=8B=E6=96=87=E6=AD=A6 escreveu: > Hello, I'd say it's not a solved problem in general. Sad to hear. For now, I continue to set GUIX environment variables (including sourcing "${GUIX_PROFILE}/etc/profile") from ~/.profile. To avoid the GIO_EXTRA_MODULES problem, I have moved Gnucash from my default profile to a separate Guix profile. This way my default "${GUIX_PROFILE}/etc/profile" does not export GIO_EXTRA_MODULES. Then to launch Gnucash I created an executable Bash script in ~/bin/gnucash with the following contents: --8<---------------cut here---------------start------------->8--- #!/usr/bin/env bash GIO_PROFILE=3D~/".guix-extra-profiles/GIO_EXTRA_MODULES/GIO_EXTRA_MODULES" eval $(guix package -p "${GIO_PROFILE}" --search-paths) gnucash --8<---------------cut here---------------end--------------->8--- I also copied ~/.guix-extra-profiles/GIO_EXTRA_MODULES/GIO_EXTRA_MODULES/share/applicatio= ns/gnucash.desktop into ~/.local/share/applications/gnucash.desktop and changed the Exec line to Exec=3D/home/jorge/bin/gnucash %f It seems to be working, but I have tested it only lightly. Regards --=20 - - I am Brazilian. I hope my English is correct and I welcome feedback. - -