This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/main by this push:
     new abdaadfddf Fix Hop GUI startup failure on Windows after SWT 3.134 
upgrade (#7889)
abdaadfddf is described below

commit abdaadfddfb1296e595babee4c04661fb5298a08
Author: Lance <[email protected]>
AuthorDate: Tue Aug 11 20:30:27 2026 +0800

    Fix Hop GUI startup failure on Windows after SWT 3.134 upgrade (#7889)
    
    Signed-off-by: lance <[email protected]>
---
 assemblies/static/src/main/resources/hop-gui-nolog.bat | 4 +++-
 assemblies/static/src/main/resources/hop-gui.bat       | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/assemblies/static/src/main/resources/hop-gui-nolog.bat 
b/assemblies/static/src/main/resources/hop-gui-nolog.bat
index b9297fa6bd..9ea129d3ad 100644
--- a/assemblies/static/src/main/resources/hop-gui-nolog.bat
+++ b/assemblies/static/src/main/resources/hop-gui-nolog.bat
@@ -112,7 +112,9 @@ echo.
 echo ===[Starting Hop]=========================================================
 
 REM Empty title "" is required: start treats the first quoted argument as the 
window title.
-start "" "%_HOP_JAVA%" -classpath %CLASSPATH% -Dswt.autoScale=false 
-Djava.library.path=%LIBSPATH% %HOP_OPTIONS% org.apache.hop.ui.hopgui.HopGui
+REM SWT 3.134+ enables monitor-specific scaling by default on Windows; only
+REM "quarter" and "exact" are compatible. Do not set -Dswt.autoScale=false.
+start "" "%_HOP_JAVA%" -classpath %CLASSPATH% -Djava.library.path=%LIBSPATH% 
%HOP_OPTIONS% org.apache.hop.ui.hopgui.HopGui
 
 :End
 endlocal
diff --git a/assemblies/static/src/main/resources/hop-gui.bat 
b/assemblies/static/src/main/resources/hop-gui.bat
index 7c00cd500c..a001a7ec74 100755
--- a/assemblies/static/src/main/resources/hop-gui.bat
+++ b/assemblies/static/src/main/resources/hop-gui.bat
@@ -119,7 +119,9 @@ echo %_HOP_JAVA% -classpath %CLASSPATH% 
-Djava.library.path=%LIBSPATH% %HOP_OPTI
 echo.
 echo ===[Starting Hop]=========================================================
 
-%_HOP_JAVA% -classpath %CLASSPATH% -Dswt.autoScale=false 
-Djava.library.path=%LIBSPATH% %HOP_OPTIONS% org.apache.hop.ui.hopgui.HopGui
+REM SWT 3.134+ enables monitor-specific scaling by default on Windows; only
+REM "quarter" and "exact" are compatible. Do not set -Dswt.autoScale=false.
+%_HOP_JAVA% -classpath %CLASSPATH% -Djava.library.path=%LIBSPATH% 
%HOP_OPTIONS% org.apache.hop.ui.hopgui.HopGui
 if ERRORLEVEL 1 (pause)
 
 :End

Reply via email to