JDK-8222814 : Remove sun.desktop System Property
  • Type: CSR
  • Component: client-libs
  • Sub-Component: javax.swing
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 13
  • Submitted: 2019-04-22
  • Updated: 2019-04-24
  • Resolved: 2019-04-24
Related Reports
CSR :  
Relates :  
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.
Comments
Moving to Approved.
24-04-2019