emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#52808: closed (Guix home should not assume that all targets are dot


From: GNU bug Tracking System
Subject: bug#52808: closed (Guix home should not assume that all targets are dot files)
Date: Fri, 08 Apr 2022 18:19:03 +0000

Your message dated Fri, 08 Apr 2022 20:18:41 +0200
with message-id <87ee27bfr2.fsf@gnu.org>
and subject line Re: bug#52808: Guix home should not assume that all targets 
are dot files
has caused the debbugs.gnu.org bug report #52808,
regarding Guix home should not assume that all targets are dot files
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
52808: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=52808
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: Guix home should not assume that all targets are dot files Date: Sun, 26 Dec 2021 12:17:27 -0500 User-agent: Cyrus-JMAP/3.5.0-alpha0-4525-g8883000b21-fm-20211221.001-g8883000b
The following configuration results in a `~/.run` symlink being created. My expectation is that a `~/run` symlink is created instead. (ie. not a dotfile)

(home-environment
  (services
    (list (service
            home-bash-service-type
            (home-bash-configuration
          (guix-defaults? #t)))
      (simple-service 'my-files
              home-files-service-type
              `(("run" ,(local-file "run")))))))

This applies to all other targets. My expectation is that the configuration should expect the exact target and not make an assumption that all targets are hidden files, since that allows for more utility:

(home-environment
  (services
    (list (service
            home-bash-service-type
            (home-bash-configuration
              (guix-defaults? #t)))
          (simple-service 'config-files
              home-files-service-type
              `(("run" ,(local-file "run"))
                ("README.txt" ,(local-file "README.txt"))
                (".config/guix/channels.scm" ,(local-file "config/guix
                (".emacs.d/init.el" ,(local-file "emacs.d/init.el"))
                (".vimrc" ,(local-file "vimrc"))
                (".gitconfig" ,(local-file "gitconfig")))))))

Thank you,

-Nick


--- End Message ---
--- Begin Message --- Subject: Re: bug#52808: Guix home should not assume that all targets are dot files Date: Fri, 08 Apr 2022 20:18:41 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Hi Andrew,

Andrew Tropin <andrew@trop.in> skribis:

> Those patches introduce a breaking change, but the surface and number of
> people affected should be small if everyone migrated to
> xdg-configuration-files.  It removes the special handling of dot files
> in symlink-manager and doesn't add a leading dot automatically.
>
> Please, merge them on April 8.
>
> From 1b556cda9716eba31a8a6dd9d3c263988de26ccf Mon Sep 17 00:00:00 2001
> From: Andrew Tropin <andrew@trop.in>
> Date: Tue, 29 Mar 2022 11:28:30 +0300
> Subject: [PATCH 1/2] home: symlink-manager: Remove appending of leading dot.
>
> * gnu/home/services.scm (xdg-configuration-files-directory): Add leading dot.
> * gnu/home/services.scm (xdg-configuration-files-service-type): Change name.
> * gnu/home/services/shells.scm (add-shell-profile-file,
> zsh-get-configuration-files, add-zsh-dot-configuration,
> add-zsh-xdg-configuration, add-bash-configuration): Add leading dots.
> * gnu/home/services/symlink-manager.scm (update-symlinks-script): Remove
> leading dot.

[...]

> From 5e1f45fa9ea1aca16843dc85d7d21fd46f3cfcb8 Mon Sep 17 00:00:00 2001
> From: Andrew Tropin <andrew@trop.in>
> Date: Tue, 29 Mar 2022 12:47:39 +0300
> Subject: [PATCH 2/2] home: Add home-xdg-data-files-service-type.
>
> * gnu/home/services.scm (home-xdg-data-files-service-type): New variable.
> * gnu/home/services/symlink-manager.scm (update-symlinks-script): Add a proper
> handling for XDG_DATA_HOME value.
> * gnu/home/services/xdg.scm (home-xdg-mime-applications-service-type): Use
> home-xdg-data-files service.

Pushed as 20645d8467852990413c1ea9cf81cec82d23defd.

Thanks!

Ludo’.


--- End Message ---

reply via email to

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