Hi Felix, thanks for your help
I installed ps-print package in Emacs, but it does not work. It says, you do need to install ghostscript. That's why I am dealing with ghostscript.
If that does not work, I would use the paths in the home or systemprofile, depending on where you installed ghostview and, if it's in both places, which version you would like to use.
This is exactly my question. I don't know where Guix System installed my ghostscript package. How can I find out this? What are the commands to find out where I installed a package? thanks for help Gottfried Am 19.11.24 um 16:04 schrieb Felix Lechner:
Hi Gottfried, On Mon, Nov 18 2024, gfp wrote:What is now the right pathIn 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/
OpenPGP_0xD9E413C6C4BB32CE.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature