guix-patches
[Top][All Lists]
Advanced

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

[bug#68857] [PATCH] gnu: home: dotfiles: Avoid creating extra directory


From: Janneke Nieuwenhuizen
Subject: [bug#68857] [PATCH] gnu: home: dotfiles: Avoid creating extra directory in $HOME.
Date: Wed, 07 Feb 2024 09:05:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

paul writes:

Hi Paul,

> could you try whether this patch solves
> https://issues.guix.gnu.org/68848 for you?

Yes, that fixes it.  Although I would rather write it something like

--8<---------------cut here---------------start------------->8---
(define (strip file-name)
  (let ((dotfile-name (string-drop file-name (+1 (string-length directory)))))
    (match (string-split dotfile-name #\/)
      ((package parts ...)
       (string-join parts "/")))))
--8<---------------cut here---------------end--------------->8---

> Thank you for your time,

No problem, somehow I looked for a patch and didn't see it before.

Thanks for the ping and for fixing this.

Greetings,
Janneke

-- 
Janneke Nieuwenhuizen <janneke@gnu.org>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | AvatarĀ® https://AvatarAcademy.com





reply via email to

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