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? This is not what I observed, but you are more experienced regarding this I presume.
Is there a better/proper place for a script like that, where it can survive an update unchanged? Something like Xsetup.d/?
You can define any script you like in your display manager configuration. For SDDM this is probably DisplayCommand, but I am not familiar enough with it.
Same problem here. /etc/sddm.conf gets overwritten without any notice 8-< This is where I came from. Bye. Michael.