guix_mirror_bot pushed a commit to branch gnome-team
in repository guix.

commit 021a5b6e9bfd20ed7f49a9f3f242f1dd93a5abb9
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Sun Aug 30 20:42:38 2026 +0900

    gnu: Deprecate gnome-default-applications with gnome-mimeapps-list.
    
    * gnu/packages/gnome.scm (gnome-default-applications): Deprecate with...
    (gnome-mimeapps-list): ... this new variable.
    (gnome-essential-extras): Adjust accordingly.
    
    Signed-off-by: Liliana Marie Prikler <[email protected]>
---
 gnu/packages/gnome.scm | 56 ++++++++++++++++++++++++--------------------------
 1 file changed, 27 insertions(+), 29 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 3957bd559bd..71f6ed02a87 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -10039,38 +10039,36 @@ configuration system for GNOME.  It allows users to 
configure desktop
 software that do not provide their own configuration interface.")
     (license license:lgpl2.1+)))
 
-(define-public gnome-default-applications
+;;; The gnome-mimeapp.list base file for the GNOME desktop is shipped with the
+;;; 'gnome-session' package.
+(define-public gnome-mimeapps-list
   (package
-    (name "gnome-default-applications")
-    (version "0")
-    (build-system trivial-build-system)
-    (source #f)
-    (propagated-inputs
-     (list nautilus evince))
-    (arguments
-     `(#:modules ((guix build utils))
-       #:builder
-       (begin
-         (use-modules (guix build utils))
-         (let* ((out (assoc-ref %outputs "out"))
-                (apps (string-append out "/share/applications")))
-           (mkdir-p apps)
-           (call-with-output-file (string-append apps "/gnome-mimeapps.list")
-             (lambda (port)
-               (format port "[Default Applications]\n")
-               (format port "inode/directory=org.gnome.Nautilus.desktop\n")
-               (format port "application/pdf=evince.desktop\n")
-               (format port "application/postscript=evince.desktop\n")))
-           #t))))
+    (name "gnome-mimeapps-list")
+    (version "50.1")
+    (build-system copy-build-system)
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://gitlab.gnome.org/GNOME/gnome-session";)
+                     (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1lskby2x0qmsxx3z90i91gln9rz0gnf4yf081vngpc0h301py0cv"))))
+    (arguments
+     (list
+      #:install-plan #~'(("data/gnome-mimeapps.list" "share/applications/"))))
     (synopsis "Default MIME type associations for the GNOME desktop")
     (description
-     "Given many installed packages which might handle a given MIME type, a
-user running the GNOME desktop probably has some preferences: for example,
-that folders be opened by default by the Nautilus file manager, not the Baobab
-disk usage analyzer.  This package establishes that set of default MIME type
-associations for GNOME.")
+     "This package provides the @file{gnome-mimeapps.list} file that
+establishes the set of default MIME type associations for GNOME.")
+    (home-page "https://gitlab.gnome.org/GNOME/gnome-session";)
     (license license:gpl3+)
-    (home-page #f)))
+    (properties '((upstream-name . "gnome-session")))))
+
+;;; TODO: Remove when 2027/03 comes.
+(define-deprecated/public-alias gnome-default-applications
+  gnome-mimeapps-list)
 
 (define-public libgovirt
   (package
@@ -10349,7 +10347,7 @@ playing media, scanning, and much more.")
                             desktop-file-utils
                             font-adwaita
                             font-dejavu
-                            gnome-default-applications
+                            gnome-mimeapps-list
                             gnome-online-accounts
                             gst-plugins-base
                             gst-plugins-good

Reply via email to