From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id sLYHHmOpPGf3GQEA62LTzQ:P1 (envelope-from ) for ; Tue, 19 Nov 2024 15:06:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id sLYHHmOpPGf3GQEA62LTzQ (envelope-from ) for ; Tue, 19 Nov 2024 16:06:11 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=nPiFcdvE; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732028771; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=NHLA6UcZbgOzOh+HKkeYa4kWPeBBsLXqpK4pwM1Axks=; b=ibShsioiFTnLhoqmp3otQhS52KqohEzBv6U9HMIOAnAYheVNGRFUx5KBkKYeaHleNPZfbw trco300CHtmxb2wNKtg7AH85/DmKQUWZeZiEs2s5GQmTaUzJCKZy9MSAtRuVQzMzRj/ESJ HO+wFzFmgiYbcYTmmABqFK8ps3ELZGuWjqsjOa0D3kwCwxY5hUfSpuBkGr25xV/+nnO28p cK/aMVmLrJfkjlgBSRmiPyFjEbhEWW0ODqrhGoEoiYvWIR6/reSuNo5fzo1gXwyDIUkxko Cx9tll9mf7zbtpAnHGMOnVzHImjQe9T2pPI40ZBHMhlvKoOX99+hyXrGX3kq+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=nPiFcdvE; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732028771; a=rsa-sha256; cv=none; b=lW+V8juaBq2TGYqnJtA6yaDdm2qMwta4tjunYXpWlePrC+6w45efak0IsanjjgtqM2kC+U ITNfRknD0mDXuPg75OH2Ae4YtoNkSg1gQgmHfBpI2VzbIXScbCyO+oUnftIFvP7I8BVPHr JE4htBZoGk81mrxp86yX5dKH91gw4zy7+wC0IWDD2ccU86pzWNAYGe4qCB5b2C1F/N1gA3 EUmYq5ZWLuGgBTVqYWGzY+CZwrLFA9VdVKLqpoUkT9RrUk4NCRzpCocLrYrj5KBCM+nSZu y56Wq5EF0eCNwHwDVLtsc6SHYzBdTmK1MjmhUzZtl8Tr2YnA5OiOJd0I5m1rtw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AB79B8FD8D for ; Tue, 19 Nov 2024 16:06:10 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDPmx-0005PB-US; Tue, 19 Nov 2024 10:05:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tDPmv-0005ON-Tt for help-guix@gnu.org; Tue, 19 Nov 2024 10:05:10 -0500 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1tDPmt-0003c8-Hi for help-guix@gnu.org; Tue, 19 Nov 2024 10:05:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=CzbvNrktGmslkQ8 SA5u10xIBQ8TglUXiCAmazO/xiFU=; h=date:references:in-reply-to:subject: cc:to:from; d=lease-up.com; b=nPiFcdvEu74ayb4cnIkbUCgISpzWagwiw5UBPBbW Z0wQ7HDbJS0Xh4pbi8jaAQIaSHk7/ouupCSrJk+CjZqiEeNI1x2LWXBpg2tS/2rFZWi24v tqR8yoejndcnhG3PA5eRZO6CgZHFCUlsj3ZTnZuv8Hmi19nMYK8jaGDlsZ0Ck= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id f793ccbf (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Tue, 19 Nov 2024 15:05:01 +0000 (UTC) To: gfp Cc: help-guix@gnu.org Subject: Re: finding the right path In-Reply-To: <9d85a378-6e08-476e-8736-89ac5eeb9699@posteo.at> (gfp@posteo.at's message of "Mon, 18 Nov 2024 16:01:06 +0000") References: <9d85a378-6e08-476e-8736-89ac5eeb9699@posteo.at> Date: Tue, 19 Nov 2024 07:04:44 -0800 Message-ID: <87frnnclir.fsf@lease-up.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@lease-up.com; helo=sail-ipv4.us-core.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Felix Lechner From: Felix Lechner via Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -0.12 X-Spam-Score: -0.12 X-Migadu-Queue-Id: AB79B8FD8D X-TUID: jyDCr0wQkZlg 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/