Integrated: 8301856: Generated .spec file for RPM installers uninstalls desktop launcher on update
Alexey Semenyuk
asemenyuk at openjdk.org
Mon Nov 27 22:31:19 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.
This pull request has now been integrated.
Changeset: 7848ed77
Author: Alexey Semenyuk <asemenyuk at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/7848ed779b8c292fe78b5e4c90a7504e034e1bf0
Stats: 407 lines in 16 files changed: 333 ins; 30 del; 44 mod
8301856: Generated .spec file for RPM installers uninstalls desktop launcher on update
Reviewed-by: almatvee
-------------
PR: https://git.openjdk.org/jdk/pull/16800
More information about the core-libs-dev
mailing list