Please come all to AstroFest in London to ask us (Mabula & Vincent) questions and to see live demos of APP!
2023-01-19: APP 2.0.0-beta13 has been released !
!!! Big performance increase due to optimizations in integration !!!
and upgraded development platform to GraalVM 22.3 based on openJDK19
We are very close now to releasing APP 2.0.0 stable with a complete printable manual...
[Solved] APP 2.0.0-beta 1: HiDPI version
A suggestion: shipping an extra HiDPI version of the linux release is unneccasary. Instead the normal version could be shipped with a second desktop file in /usr/share/applications/, essentially the same as astropixelprocessor.desktop now, but with a few lines changed like this:
Name=Astro Pixel ProcessorName (HiDPI) GenericName=Astro Pixel Processor (HiDPI) Exec=env GDK_SCALE=2 /opt/astropixelprocessor/astropixelprocessor %U
The GDK_SCALE environment variable is read by AWT/Swing and has the same effect as
Hi Janos @lenart,
Okay, that is also very helpfull indeed ! So that solution should have 100% the same effect on all linux distributions then? That is awesome and saves us a bit of work in deploying new versions 😊
@mabula-admin, as far as I know it has the same effect, at least on anything running Gnome. Unfortunately I do not have ready access to other desktops running distros other than Debian, so I can't be sure of that.
Perhaps a safer way is to modify that launcher script a little (line 20):
$JAVA $JVMDefaultOptions $JVMExtraOptions -cp $JVMClassPath com.ariesproductions.astropixelprocessor.AstroPixelProcessor $@
and add a HiDPI desktop file that sets that variable:
Exec=env JVMExtraOptions=-Dsun.java2d.uiScale=2.0 /opt/astropixelprocessor/astropixelprocessor %U
Thanks a lot Janos, @lenart !
I will definitely try to have this nicely implemented for the 2.0.0-beta2 release 😉
Hi Janos @lenart,
Excellent, thank you very much for this suggestion.
I have implemented it like you indicated. The installers for both DEB and RPM have 2 desktop files now, 1 for HiDPI support with scale=2.0, the other with default scale=1.0. And the startup script uses the extra JVM option.
It works nicely for both RPM and DEB distributions giving the user the choice how to run APP with only 1 installer which is really nice 🙂
Thanks a lot!
😲 That was quick, thank you 🙂