Install this version:
emerge -a =x11-misc/xdg-user-dirs-gtk-0.16
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =x11-misc/xdg-user-dirs-gtk-0.16
Or alternatively:
emerge --autounmask-write -a =x11-misc/xdg-user-dirs-gtk-0.16
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.16 | 8 | ~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit gnome.org meson readme.gentoo-r1
DESCRIPTION="Integrates xdg-user-dirs into the Gnome desktop and Gtk+ applications"
HOMEPAGE="https://gitlab.gnome.org/GNOME/xdg-user-dirs-gtk"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
RDEPEND="
dev-libs/glib:2
>=x11-libs/gtk+-3.5.1:3
>=x11-misc/xdg-user-dirs-0.14
"
DEPEND="${RDEPEND}"
BDEPEND="
sys-devel/gettext
virtual/pkgconfig
"
DOC_CONTENTS="
This package tries to automatically use some sensible default
directories for your documents, music, video, and other stuff.
If you want to change those directories to your needs, see
the settings in ~/.config/user-dirs.dirs
"
src_prepare() {
default
# https://gitlab.gnome.org/GNOME/xdg-user-dirs-gtk/-/merge_requests/23
sed -i \
-e 's:OnlyShowIn=GNOME;LXDE;Unity;:NotShowIn=KDE;:' \
user-dirs-update-gtk.desktop.in || die
}
src_install() {
meson_src_install
readme.gentoo_create_doc
}
pkg_postinst() {
readme.gentoo_print_elog
}
dev-libs/glib:2 >=x11-libs/gtk+-3.5.1:3 >=x11-misc/xdg-user-dirs-0.14
dev-libs/glib:2 >=x11-libs/gtk+-3.5.1:3 >=x11-misc/xdg-user-dirs-0.14
sys-devel/gettext virtual/pkgconfig