[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "Command not found" when using `home-mcron-service`
From: |
Tanguy LE CARROUR |
Subject: |
Re: "Command not found" when using `home-mcron-service` |
Date: |
Mon, 15 Jan 2024 17:17:04 +0100 |
User-agent: |
alot/0.10 |
Hi Oleg,
Quoting Oleg Pykhalov (2024-01-15 16:25:27)
> The Home service matches Guix System in this case, so currently
> specification of a full path to a binary is required.
>
> It's possible to do in several ways:
>
> 1) Use full path to the binary with ungexp, e.g.
>
> preferred and cleaner:
>
> #$(file-append notmuch "/bin/notmuch")
>
> or:
> (string-append #$notmuch "/bin/notmuch")
>
> Hint: make sure notmuch is defined, e.g. at the top of a file:
>
> (use-modules (gnu packages mail))
I tried this one! 😁
The `string-append` version I mean.
`mcron` can then find `notmuch`, but `notmuch` has some hooks that depend
on other commands; `mbsync` and `afew` in my case. For this, I cannot really
provide the full path? 🤔 … actually, I could, but then it would be
`/home/USER/.guix-home/profile/bin/mbsync`, not the actual path.
This should work, but I can help be find it a bit weird, because it
propagates to quite a number of files. 😞
And the same goes for `vdirsyncer` that relies on `pass`…
Oh, actually, I've just figured out that this doesn't actually work,
because my `USER` is not the same on all my computers! 😱
And I cannot rely on `$HOME` because it's not supported by all the
configuration files that are affected.
So I would definitively favour a solution where the PATH is set once and
for all by Mcron.
Regards,
--
Tanguy