#1012561 Purging the package does not remove configuration in /usr/share/qtcreator/QtProject

Package:
qtcreator
Source:
qtcreator
Description:
integrated development environment (IDE) for Qt
Submitter:
Enrico Zini
Date:
2022-06-09 10:48:04 UTC
Severity:
normal
#1012561#5
Date:
2022-06-09 10:39:34 UTC
From:
To:
Hello,

if one uses sdktool to programmatically configure parts of QT
Creator[1], the resulting configuration is saved in
/usr/share/qtcreator/QtProject

However, dpkg --purge qtcreator, which should also remove its
configuration, does not remove that directory, which is then left as
cruft in the filesystem, and found by a following reinstall of Qt
Creator.

I suppose adding a `rm -rf /usr/share/qtcreator/QtProject` of that
directory in postinst is all that's required to fix this


Thank you,

Enrico


[1] see for example
https://embeddeduse.com/2020/11/21/cross-compiling-qt-embedded-applications-with-qtcreator-and-cmake/
    and https://code.qt.io/cgit/yocto/meta-boot2qt.git/tree/meta-boot2qt/files/configure-qtcreator.sh