RFR: 8301856: Generated .spec file for RPM installers uninstalls desktop launcher on update

Alexey Semenyuk asemenyuk at openjdk.org
Mon Nov 27 22:24:06 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.

@sashamatveev please review

-------------

PR Comment: https://git.openjdk.org/jdk/pull/16800#issuecomment-1828514315


More information about the core-libs-dev mailing list