From 22b5b3d881a1f1ea2ae3ba017c4a2287fd273b0d Mon Sep 17 00:00:00 2001 From: NoƩ Lopez Date: Mon, 20 Apr 2026 16:29:16 +0200 Subject: gnu: Add xdg-user-dirs-gtk. * gnu/packages/gtk.scm (xdg-user-dirs-gtk): New variable. Change-Id: I334c1753e01e02d386856c3c31570e36e853bb90 Signed-off-by: Liliana Marie Prikler --- gnu/packages/gtk.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm index cd903f48f8..b7dbb77401 100644 --- a/gnu/packages/gtk.scm +++ b/gnu/packages/gtk.scm @@ -2763,6 +2763,43 @@ entire output. It supports all Layer Shell features including popups and popovers.") (license license:expat))) +(define-public xdg-user-dirs-gtk + (package + (name "xdg-user-dirs-gtk") + (version "0.16") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.gnome.org/GNOME/xdg-user-dirs-gtk.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "11h1164mkajpfrp6mkky2gvx3xd7dw0c9f2785jf4lys4jmmj4c3")))) + (build-system meson-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-exec-path + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "update.c" + (("xdg-user-dirs-update") + (search-input-file inputs "/bin/xdg-user-dirs-update")))))))) + (native-inputs + (list gettext-minimal + pkg-config)) + (inputs + (list gtk+ + xdg-user-dirs)) + (home-page "https://gitlab.gnome.org/GNOME/xdg-user-dirs-gtk") + (synopsis "Integration of xdg-user-dirs with GTK") + (description "This package is a companion to @code{xdg-user-dirs} to +integrate it with the GNOME desktop and GTK applications. It gets run during +login to create default GTK bookmarks files containing the user directories, and +to rename these directories if the locale changes.") + (license license:gpl2+))) + (define-public goocanvas (package (name "goocanvas") -- cgit v1.3