-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically turn off splash screen if SWT_GTK4=1 #833
base: master
Are you sure you want to change the base?
Automatically turn off splash screen if SWT_GTK4=1 #833
Conversation
There are errors like this suggesting a version bump is needed:
|
The failing test ( |
Yes the TCK test failure is expected see: |
When using GTK4 we must not run any GTK3 initialization. Therefore automatically apply -nosplash when SWT_GTK4=1 Fixes eclipse-equinox#831
42fec5a
to
e7a2e4a
Compare
// it must be started without a splash screen | ||
// https://github.com/eclipse-equinox/equinox/issues/831 | ||
// If the user didn't already specify -nosplash print a warning and turn the splashscreen off | ||
_ftprintf(stderr, "WARNING: SWT_GTK4 does not support splash screen yet. Therefore it has been disabled. To suppress this message launch with -nosplash\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to support splash-screens with GTK4 or is this too complicated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will be - this is a temporary state to resolve #831. To do splash screens on GTK4 we need to use GTK4 to start the splash on the native side. That means the launcher will need GTK4 soon.
What I think we will need to do is similar to what we do in SWT. I created #836 for adding the real version of the splash screen for GTK4.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PS I was looking for a simple patch to write for eclipse launcher to make sure I understood build flow. If this change seems unnecessary, then we can also just close it and work on the correct GTK4 splash screens at a suitable time in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better to have no splash screen until we have GTK4 support instead of failing completely.
@jonahgraham thanks for working on this, I think we have even one more case here: If the application crash (e.g. exit with an exception in the main, JDK can not be loaded and so on) the the launcher shows a popup (see option |
Please see #836 (comment) I specifically didn't put a guard on error messages because I thought it best that they still appear even is user does SWT_GTK4=1 |
When using GTK4 we must not run any GTK3 initialization. Therefore automatically apply -nosplash when SWT_GTK4=1
Fixes #831