Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package xdg-user-dirs for openSUSE:Factory checked in at 2023-02-10 14:33:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/xdg-user-dirs (Old) and /work/SRC/openSUSE:Factory/.xdg-user-dirs.new.1848 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xdg-user-dirs" Fri Feb 10 14:33:41 2023 rev:32 rq:1063982 version:0.18 Changes: -------- --- /work/SRC/openSUSE:Factory/xdg-user-dirs/xdg-user-dirs.changes 2022-10-27 13:52:22.788021860 +0200 +++ /work/SRC/openSUSE:Factory/.xdg-user-dirs.new.1848/xdg-user-dirs.changes 2023-02-10 14:33:46.181364579 +0100 @@ -1,0 +2,7 @@ +Mon Feb 6 15:46:27 UTC 2023 - Fabian Vogt <[email protected]> + +- Add patch to provide a systemd user service + (gh#systemd/systemd#18791, boo#1201728): + * 0001-Add-a-systemd-service-to-run-xdg-user-dirs-update.patch + +------------------------------------------------------------------- New: ---- 0001-Add-a-systemd-service-to-run-xdg-user-dirs-update.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xdg-user-dirs.spec ++++++ --- /var/tmp/diff_new_pack.dTalCm/_old 2023-02-10 14:33:46.629367256 +0100 +++ /var/tmp/diff_new_pack.dTalCm/_new 2023-02-10 14:33:46.637367303 +0100 @@ -1,7 +1,7 @@ # # spec file for package xdg-user-dirs # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,9 +24,13 @@ Group: System/GUI/Other URL: https://freedesktop.org/wiki/Software/xdg-user-dirs Source0: https://user-dirs.freedesktop.org/releases/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM +Patch1: 0001-Add-a-systemd-service-to-run-xdg-user-dirs-update.patch BuildRequires: make BuildRequires: suse-xsl-stylesheets +BuildRequires: systemd-rpm-macros BuildRequires: update-desktop-files +%systemd_ordering %description xdg-user-dirs is a tool to help manage "well known" user directories @@ -36,7 +40,7 @@ %lang_package %prep -%setup -q +%autosetup -p1 %build %configure @@ -44,6 +48,7 @@ %install %make_install +install -Dm0644 xdg-user-dirs.service %{buildroot}%{_userunitdir}/xdg-user-dirs.service # Change sr@Latn to sr@latin mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin %find_lang %{name} %{?no_lang_C} @@ -54,6 +59,15 @@ chmod a+x %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/xdg-user-dirs.sh %suse_update_desktop_file %{name} +%pre +%systemd_user_pre xdg-user-dirs.service + +%post +%systemd_user_post xdg-user-dirs.service + +%preun +%systemd_user_preun xdg-user-dirs.service + %files %license COPYING %doc AUTHORS README ChangeLog @@ -67,6 +81,7 @@ %{_bindir}/xdg-user-dir %{_bindir}/xdg-user-dirs-update %{_sysconfdir}/xdg/autostart/xdg-user-dirs.desktop +%{_userunitdir}/xdg-user-dirs.service %files lang -f %{name}.lang ++++++ 0001-Add-a-systemd-service-to-run-xdg-user-dirs-update.patch ++++++ >From 2a63d3f0ffb76135790bb1168a3270a599904380 Mon Sep 17 00:00:00 2001 From: David Redondo <[email protected]> Date: Tue, 20 Sep 2022 10:37:51 +0200 Subject: [PATCH] Add a systemd service to run xdg-user-dirs-update Recently GNOME and Plasma have been embracing systemd for handling their session startup. To enable autostart integration with this systemd includes systemd-xdg-autostart-generator which creates units from autostart desktop files. xdg-user-dirs installs such a desktop file (xdg-user-dirs.desktop). However because this file contains X-GNOME-Autostart-Phase=Initialization systemd will skip it since it assumes it will be handles by GNOME itself. This a problem for Plasma and other desktop environments that do not handle this themselves, assuming that systemd takes care about autostart xdg-user-dirs-update will not be run. See https://github.com/systemd/systemd/issues/18791 We can provide a systemd service file to make sure xdg-user-dirs-update is run during session startup. This ensures that the relevant directories of the user exist on login and during startup as specifying to be run before graphical-session-pre.target means that it runs sufficiently early in the startup process while using the generator would result in 'After=graphical-session.target'. --- xdg-user-dirs.desktop | 1 + xdg-user-dirs.service | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 xdg-user-dirs.service diff --git a/xdg-user-dirs.desktop b/xdg-user-dirs.desktop index 6b969d4..b14a973 100644 --- a/xdg-user-dirs.desktop +++ b/xdg-user-dirs.desktop @@ -8,3 +8,4 @@ NoDisplay=true X-GNOME-Autostart-Phase=Initialization X-KDE-autostart-phase=1 +X-systemd-skip=true diff --git a/xdg-user-dirs.service b/xdg-user-dirs.service new file mode 100644 index 0000000..6795045 --- /dev/null +++ b/xdg-user-dirs.service @@ -0,0 +1,11 @@ +[Unit] +Description=User folders update +Documentation=man:xdg-user-dirs-update(1) +Before=graphical-session-pre.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/xdg-user-dirs-update + +[Install] +WantedBy=graphical-session-pre.target -- 2.39.1
