RFR: 8301856: Generated .spec file for RPM installers uninstalls desktop launcher on update
Alexander Matveev
almatvee at openjdk.org
Mon Nov 27 22:24:05 UTC 2023
On Thu, 23 Nov 2023 16:36:28 GMT, Alexey Semenyuk <asemenyuk at openjdk.org> wrote:
> Fix uninstallation scripts in Linux installers to take action on desktop files only if these desktop files are not owned by another package. This prevents `xdg-mime uninstall`, `xdg-desktop-menu uninstall` commands from execution in case of upgrades.
>
> Borrowed helper shell script function from "launchers as services" for the fix. Now on Linux there is shared code between "launchers as services" and "desktop integration" subsystems - "common_utils.sh". Added `ServiceAndDesktopTest.java` to test how they align.
Looks good.
-------------
Marked as reviewed by almatvee (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/16800#pullrequestreview-1751505209
More information about the core-libs-dev
mailing list