Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8241713

Linux desktop shortcuts with spaces make postinst/prerm fail

    XMLWordPrintable

Details

    • b18
    • x86_64
    • linux_ubuntu
    • Not verified

    Description

      A DESCRIPTION OF THE PROBLEM :
      When application name contains spaces, jpackage generates invalid `xdg-desktop-menu` invocations: it does not escape spaces in name, so they become different args to `xdg-desktop-menu`, for example:

      `xdg-desktop-menu install /opt/my-app/lib/My App.desktop`

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Invoke jpackage with `--name "My App"` and `--linux-shortcut`

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Produced deb can be installed/uninstalled
      ACTUAL -
      dpkg fails installs/uninstalls.

      FREQUENCY : always


      Attachments

        Issue Links

          Activity

            People

              asemenyuk Alexey Semenyuk
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: