help-guix
[Top][All Lists]
Advanced

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

Re: how can I open files through packages installed in different profile


From: gfp
Subject: Re: how can I open files through packages installed in different profiles
Date: Sun, 8 Dec 2024 19:44:00 +0000

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: OpenPGP_0xD9E413C6C4BB32CE.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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