From 13dc07b13e73498da408ccb87b972a614c0adffc Mon Sep 17 00:00:00 2001 From: Edgar Hoch Date: Wed, 3 Mar 2021 22:43:52 +0000 Subject: [PATCH] Don't overwrite config files modified by administrator When an administrator modifies files in `/etc/xdg/autostart/`, these changes are lost on next update of the package. But the administrator should be able to configure systemwide defaults, e.g. that the program should not autostart at log in. --- kf5-baloo.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kf5-baloo.spec b/kf5-baloo.spec index 966fb78..2693a39 100644 --- a/kf5-baloo.spec +++ b/kf5-baloo.spec @@ -172,10 +172,10 @@ make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||: %files file -f %{name}-file.lang %{_prefix}/lib/sysctl.d/97-kde-baloo-filewatch-inotify.conf -%{_sysconfdir}/xdg/plasma-workspace/shutdown/baloo_file.sh +%config(noreplace) %{_sysconfdir}/xdg/plasma-workspace/shutdown/baloo_file.sh %{_kf5_bindir}/baloo_file %{_kf5_bindir}/baloo_file_extractor -%{_kf5_sysconfdir}/xdg/autostart/baloo_file.desktop +%config(noreplace) %{_kf5_sysconfdir}/xdg/autostart/baloo_file.desktop %ldconfig_scriptlets libs