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

Remove sun.desktop System Property

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P4
    • Resolution: Approved
    • Fix Version/s: 13
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      low
    • Compatibility Risk Description:
      Hide
      It is unclear how an application may use this property, but
      since is not set on all platforms / desktops, apps cannot be relying on it being set. It is also unclear where, if anywhere, this was documented.
      Show
      It is unclear how an application may use this property, but since is not set on all platforms / desktops, apps cannot be relying on it being set. It is also unclear where, if anywhere, this was documented.
    • Interface Kind:
      System or security property
    • Scope:
      Implementation

      Description

      Summary

      Remove the sun.desktop system property.

      Problem

      The sun.desktop system property is being set by the launcher, on a Gnome desktop to the value "gnome". This is used only by Swing code in java.desktop to decide if it is a Gnome desktop to facilitate further decisions. It is also set on Windows to just the value "windows" for no obvious reason. It may have legacy from when there were plans to create a Sun "Java" desktop L&F.

      However it serves no purpose today

      Solution

      Remove the system property. The only usage of this is replaced by code inside the desktop module which determines if it is a Gnome desktop in the same way.

      Specification

      1) Remove the sun.desktop system property.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                prr Philip Race
                Reporter:
                prr Philip Race
                Reviewed By:
                Sergey Bylokhov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: