unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: gfp <gfp@posteo.at>
To: Rutherther <rutherther@ditigal.xyz>
Cc: Steve George <steve@futurile.net>, help-guix@gnu.org
Subject: Re: how can I open files through packages installed in different profiles
Date: Sun,  8 Dec 2024 19:44:00 +0000	[thread overview]
Message-ID: <2f722a8f-ec65-4168-8f54-6e425524a336@posteo.at> (raw)
In-Reply-To: <87ed2jqmq2.fsf@ditigal.xyz>


[-- Attachment #1.1.1: Type: text/plain, Size: 2272 bytes --]

Hi,
thanks for help.

> What is your shell? Let's say it's bash. Bash uses either
>> ~/.bash_profile if it exists, or falls back to ~/.profile.
>> To export a environment variable from it means to
>> `export XDG_DATA_DIRS=$HOME/path/to/your/profile1:$HOME/path/to/your/profile2:$XDG_DATA_DIRS`,
>> and so on. If you are using other shell, check your shell's manual for
>> the profile it uses.

I have got bash.
~/.bash_profile:
--------------------------------------------
# Honor per-interactive-shell startup file
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi

GUIX_EXTRA_PROFILES=/home/gfp/Projekte
for i in $GUIX_EXTRA_PROFILES/*; do
   profile=$i/guix-profil
   if [ -f "$profile"/etc/profile ]; then
     GUIX_PROFILE="$profile"
     . "$GUIX_PROFILE"/etc/profile
   fi
   unset profile
done
-----------------------------------------

 >> `export 
XDG_DATA_DIRS=$HOME/path/to/your/profile1:$HOME/path/to/your/profile2:$XDG_DATA_DIRS`,
 >> and so on.

I have got 17 Profiles in:
/home/gfp/Projekte/Calibre
		  /Emacs
		  /Libreoffice	
		  etc.

  Would that mean to sorce all 17 profiles in one go?
or only two at a time?

e.g. two profiles:

`export 
XDG_DATA_DIRS=$HOME/gfp/Projekte/Calibre:$HOME/gfp/Projekte/Emacs:$XDG_DATA_DIRS` 



I don´t want to make a mistake that´s why I am asking beforehand.

Thanks

Gottfried



Am 07.12.24 um 21:09 schrieb Rutherther:
> gfp <gfp@posteo.at> writes:
> 
>> How can I do this?
>>
>> I am using MATE desktop mainly (more shortcuts) and sometimes KDE (less
>> shortcuts for me at the moment).
>> Please explain it more, I am on a lower level.
> 
> What is your shell? Let's say it's bash. Bash uses either
> ~/.bash_profile if it exists, or falls back to ~/.profile.
> To export a environment variable from it means to
> `export XDG_DATA_DIRS=$HOME/path/to/your/profile1:$HOME/path/to/your/profile2:$XDG_DATA_DIRS`,
> and so on. If you are using other shell, check your shell's manual for
> the profile it uses.
> 
> If you are using guix home, you can use
> home-environment-variables-service-type, it will put it to the correct
> place, where it will be sourced from the profile file. Examples
> are in the manual.
> 
> Regards,
> Rutherther



[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2451 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 665 bytes --]

  reply	other threads:[~2024-12-08 19:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-15 19:29 how can I open files through packages installed in different profiles gfp
2024-11-18 14:58 ` Steve George
2024-12-07 13:08   ` gfp
2024-12-07 14:02     ` Rutherther
2024-12-07 15:28       ` gfp
2024-12-07 20:09         ` Rutherther
2024-12-08 19:44           ` gfp [this message]
2024-12-08 21:19             ` Rutherther
2024-12-09 19:15               ` gfp
2024-12-09 17:15             ` Ian Eure
2024-12-09 19:25               ` gfp
2024-12-09 20:03                 ` Ian Eure
2024-12-10 12:36                 ` Andreas Enge

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=2f722a8f-ec65-4168-8f54-6e425524a336@posteo.at \
    --to=gfp@posteo.at \
    --cc=help-guix@gnu.org \
    --cc=rutherther@ditigal.xyz \
    --cc=steve@futurile.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.
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).