Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package desktop-file-utils for 
openSUSE:Factory checked in at 2026-04-18 21:34:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/desktop-file-utils (Old)
 and      /work/SRC/openSUSE:Factory/.desktop-file-utils.new.11940 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "desktop-file-utils"

Sat Apr 18 21:34:07 2026 rev:75 rq:1347294 version:0.28

Changes:
--------
--- /work/SRC/openSUSE:Factory/desktop-file-utils/desktop-file-utils.changes    
2025-01-02 19:19:54.564718090 +0100
+++ 
/work/SRC/openSUSE:Factory/.desktop-file-utils.new.11940/desktop-file-utils.changes
 2026-04-18 21:34:13.872322396 +0200
@@ -1,0 +2,15 @@
+Mon Apr 13 09:22:24 UTC 2026 - Dominique Leuenberger <[email protected]>
+
+- Do not require systemd: either this is installed in a system that
+  uses systemd, then it's present, or the scripts are used withing
+  builds/containers where systemd is not used or wanted.
+
+-------------------------------------------------------------------
+Thu Apr  9 10:49:01 UTC 2026 - Antonio Larrosa <[email protected]>
+
+- Add update-desktop-database.service to update the desktop files
+  database on boot which is needed in immutable systems since only
+  then the newly installed desktop files are available
+  (jsc#PED-14839).
+
+-------------------------------------------------------------------

New:
----
  update-desktop-database.service

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ desktop-file-utils.spec ++++++
--- /var/tmp/diff_new_pack.rbERbP/_old  2026-04-18 21:34:14.720356851 +0200
+++ /var/tmp/diff_new_pack.rbERbP/_new  2026-04-18 21:34:14.720356851 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package desktop-file-utils
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,6 +27,7 @@
 Source1:        suse-update-mime-defaults
 Source2:        macros.desktop-file-utils
 Source3:        install_man.py
+Source4:        update-desktop-database.service
 # PATCH-FEATURE-OPENSUSE desktop-file-utils-suse-keys.patch [email protected] 
-- Handle SUSE-specific keys in validator. This is not strictly necessary, 
since they are prefixed with X-, but we can verify that the value has the right 
type.
 Patch0:         desktop-file-utils-suse-keys.patch
 # PATCH-FIX-OPENSUSE install_man_desktop-file-edit_as_symlink.patch -- With 
Source3 makes manual page "desktop-file-edit.1" a symlink instead of a copy.
@@ -71,6 +72,9 @@
 mkdir -p %{buildroot}%{_datadir}/applications
 touch %{buildroot}%{_datadir}/applications/mimeinfo.cache
 
+install -d -m 755 %{buildroot}/%{_unitdir}
+install -m 644 %{SOURCE4} %{buildroot}%{_unitdir}
+
 %filetriggerin -- %{_datadir}/applications
 %{_bindir}/update-desktop-database --quiet %{_datadir}/applications || true
 %{_bindir}/suse-update-mime-defaults || true
@@ -81,6 +85,18 @@
     %{_bindir}/suse-update-mime-defaults || true
 fi
 
+%pre
+%service_add_pre update-desktop-database.service
+
+%post
+%service_add_post update-desktop-database.service
+
+%preun
+%service_del_preun update-desktop-database.service
+
+%postun
+%service_del_postun update-desktop-database.service
+
 %files
 %license COPYING
 %doc AUTHORS ChangeLog NEWS README
@@ -99,4 +115,5 @@
 %dir %{_datadir}/emacs/site-lisp
 %{_datadir}/emacs/site-lisp/*.el*
 %{_rpmmacrodir}/macros.desktop-file-utils
+%{_unitdir}/update-desktop-database.service
 

++++++ update-desktop-database.service ++++++
[Unit]
Description=Update desktop database and mime defaults
Wants=local-fs.target
ConditionFileIsExecutable=/usr/bin/update-desktop-database

[Service]
Type=oneshot
ExecStart=-/usr/bin/update-desktop-database --quiet /usr/share/applications
ExecStart=-/usr/bin/suse-update-mime-defaults

[Install]
WantedBy=default.target

Reply via email to