#1127482 lxqt-globalkeys: Inconsistency due to creation of possibly spurious directory

Package:
lxqt-globalkeys
Source:
lxqt-globalkeys
Description:
daemon used to register global keyboard shortcuts (appl.)
Submitter:
Oliver M. Schode
Date:
2026-04-26 22:53:01 UTC
Severity:
normal
#1127482#5
Date:
2026-02-09 13:58:02 UTC
From:
To:
Hi!

There's something wrong here:

$ sudo dpkg --verify
dpkg: error: cannot compute MD5 digest for file '/etc/xdg/lxqt/globalkeyshortcuts.conf': failed to read (Is a directory)
$ ls /etc/xdg/lxqt/globalkeyshortcuts.conf/
globalkeyshortcuts.conf

The eponymous directory only contains the config file. According to
apt-file no other package is supposed to place anything there, I suspect
a packaging mistake.

Regards,
Oliver

#1127482#10
Date:
2026-04-26 22:45:58 UTC
From:
To:
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