On 30/03/2021 22.07, mh@mike.franken.de wrote:
On Dienstag, 30. März 2021 21:26:47 CEST Andrei Borzenkov wrote:
On 30.03.2021 21:21, mh@mike.franken.de wrote:
Hi *,
on my notebook I use a small script to handle the connected graphics ports via xrandr. This script has to be run before sddm-greeter gets started. For a long time now the script was started from [/usr]/etc/X11/xdm/Xsetup, /usr/etc is unlikely to be "for a long time". Also telling your distribution and version would be helpful.
This happens on Leap 15.2 and on Tumbleweed.
because I couldn't find a better place for it. It is annoying, though, that Xsetup gets overwritten with every update of xdm. What's more annoying, is the fact, that no .rpmsave file is created during update, despite the fact I had modified the file.
If file is not changed between two package versions it should be left as is. rpmsave/rpmnew are created if file changed in package *and* was modified on disk. As /etc/X11/xdm/Xsetup was not changed in 5 years, this would explain why no rpmsave is created (but then it also should not be replaced). And files in /usr/etc are not intended to be editable, so these files are unconditionally overwritten on update - this is absolutely correct and expected behavior.
Ok, so an rpm does not respect local modifications and is set to overwrite a file without telling anyone about that fact?
No, that is not what he said. -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)