help-guix
[Top][All Lists]
Advanced

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

Re: finding the right path


From: Felix Lechner
Subject: Re: finding the right path
Date: Tue, 19 Nov 2024 07:04:44 -0800

Hi Gottfried,

On Mon, Nov 18 2024, gfp wrote:

> What is now the right path

In Guix, programs can be found in four places:

1. In the store.  That is where packages are "installled," but the paths
are cumbersome.  They involve a gibberish of characters known as
cryptographic hashes.  In Guix, we use those paths only when referring
from one package to another.  That's how multiple versions of the same
thing can co-exist on Guix at the same time.  It's also why Guix is so
stable.

2. In your home profile (~/.guix-home/profile).  Those are symbolic
links into the store.  The profile itself is actually in the store
itself ("ls -al ~/.guix-home/profile" in Bash but not in Eshell) which
then links to the final location.  Guix is all about managing those
links.

3. In temporary profiles, which are in ~/.cache/guix/profiles.  They are
created by commands like 'guix shell'.

4. If you use "Guix System" as I do, links to the programs you installed
are aggregated in the system profile, which is located in
/run/current-system/profile.

An environment variable called GUIX_ENVIRONMENT tracks your active
profiles and, with proper configuration in your shell, should set PATH
so that all programs are found without paths.

In other words, you (or any programs that inherits PATH) should be able
to type just "gv".

With that in mind, I would first try to get rid of pr-path-alist
altogether.

> (require 'printing)
>     (setq pr-path-alist
>           '((unix      "." "~/bin" ghostview mpage PATH)
>             (ghostview "$HOME/bin/gsview-dir")
>             (mpage     "$HOME/bin/mpage-dir")
>             ))

If that does not work, I would use the paths in the home or system
profile, depending on where you installed ghostview and, if it's in both
places, which version you would like to use.

As a side note, I personally had better luck with the ps-print package
that is described here. [1] Locally, it uses my default printer, which I
configured in CUPS (localhost:631) and probably set to default with
'lpoptions' as described here. [2]

Kind regards
Felix

[1] https://www.emacswiki.org/emacs/PrintingFromEmacs
[2] https://arkit.co.in/set-default-printer-linux-command/



reply via email to

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