On Thu, 23 Nov 2023 16:36:28 GMT, Alexey Semenyuk <asemen...@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 <asemen...@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