Hi, I am wondering if perhaps the fix of [1] for #1123737 is
incomplete, and is the cause of #1127482. If I understand correctly,
dpkg won't simply replace a directory with a file, and maintainer
scripts are needed here. (If that's true: is there a better way than
manual logic to e.g. (1) assert that the directory only contains this
file and flatten the existing file, then (2) do the usual conffile
replacement if not modified by the admin?)
[1] https://salsa.debian.org/lxqt-team/lxqt-globalkeys/-/commit/3b3fb3e8c160671aeff0a0839a6aab9a45edf3e4
Doing an upgrade of trixie to forky with lxqt-globalkeys installed
gives the following warnings:
Preparing to unpack …/414-lxqt-globalkeys_2.3.0-2_amd64.deb…
Unpacking lxqt-globalkeys (2.3.0-2) over (2.1.0-2)…
dpkg: warning: lxqt-globalkeys: conffile '/etc/xdg/lxqt/globalkeyshortcuts.conf' is not a plain file or symlink (= '/etc/xdg/lxqt/globalkeyshortcuts.conf')
...
Setting up lxqt-globalkeys (2.3.0-2)…
Installing new version of config file /etc/xdg/autostart/lxqt-globalkeyshortcuts.desktop…
dpkg: warning: lxqt-globalkeys: conffile '/etc/xdg/lxqt/globalkeyshortcuts.conf' is not a plain file or symlink (= '/etc/xdg/lxqt/globalkeyshortcuts.conf')
and leaves the directory like this:
# ls -lR /etc/xdg/lxqt
/etc/xdg/lxqt:
total 20
drwxr-xr-x 1 root root 46 Apr 26 22:09 globalkeyshortcuts.conf
-rw-r--r-- 1 root root 820 Nov 5 11:50 globalkeyshortcuts.conf.dpkg-new
<snip - unrelated files>
/etc/xdg/lxqt/globalkeyshortcuts.conf:
total 4
-rw-r--r-- 1 root root 819 Nov 5 2024 globalkeyshortcuts.conf
Cheers,
Bryan