basil commented on PR #8589:
URL: https://github.com/apache/netbeans/pull/8589#issuecomment-3193880060

   > I think for GNOME we should probably prefer to use the official fractional 
scaling support. Users with HiDPI displays may have the incentive to upgrade to 
the latest version in any case.
   
   I have changed this PR so that it does not set `flatlaf.uiScale` when 
running on GNOME.
   
   > What will this PR's version of the launcher do on GNOME?
   
   This PR's version of the launcher, as of the latest revision, will only 
replace `GDK_SCALE=2` with `-Dsun.java2d.uiScale=2` on GNOME, but it will not 
set `-Dflatlaf.uiScale` on GNOME. This should result in no change in existing 
behavior. Note that setting `GDK_SCALE=2` or `-Dsun.java2d.uiScale=2` on GNOME 
48 with `xwayland-native-scaling` enabled may (?) be inappropriate. If so, that 
potential problem would have existed before this PR and should not be made any 
better or worse after this PR. Since I don't use GNOME, I am not motivated to 
work on this potential problem; my motivation is only not to cause any 
regressions on GNOME.
   
   > I just hope we won't start littering the NetBeans codebase with "adjust 
size for flatlaf.uiScale" patches.
   
   I do not intend to do so myself. This workaround at the launcher level is 
good enough for me to get a usable application.
   
   > I do share Neil's concern that the launcher is getting a bit complex at 
this point. It's hard to test the various settings and configurations 
thoroughly.
   
   Agreed, but that is a consequence of the rapidly increasing complexity of 
the Linux ecosystem as a whole caused by the migration from X11 to Wayland. 
This migration is as painful for users as it is for developers, but I don't 
think there is anything NetBeans can do about this.
   
   > An alternative to actually changing the settings automatically is to print 
suggestions on the terminal.
   
   To me, this is a bad user experience (UX). Competing Java IDEs "just work" 
out of the box, and NetBeans should as well, or at least it should work as well 
as it can. Right now HiDPI support is obviously broken in my configuration in 
KDE. I was annoyed that I had to research these obscure parameters, calculate 
the right numbers to put into them, and then edit my configuration just to get 
a usable scaling level. I created this PR so that other users would not have to 
suffer my pain.
   
   > "We see you are running fractional scaling on KDE; consider setting 
flatlaf.uiScale in netbeans.conf."
   
   This PR effectively automates this, which I consider a better UX. I did not 
enjoy learning about all these scaling parameters, and other users shouldn't 
have to understand this obscure stuff either.
   
   > "We see you are running fractional scaling on an older GNOME version; 
consider upgrading to GNOME 48."
   
   It would be nice to print this for GNOME users. I am not a GNOME user and 
have no immediate reason to improve GNOME support, so I will leave this 
improvement to someone else who has such motivations.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to