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

Remove sun.desktop System Property

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 13
    • client-libs
    • None
    • behavioral
    • low
    • 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.
    • System or security property
    • Implementation

      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.

            prr Philip Race
            prr Philip Race
            Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: