mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-17 14:59:41 +01:00
JBR-7390 Wayland: need better headless exception message
(cherry picked from commit b68c0ecc6f)
This commit is contained in:
committed by
Vitaly Provodin
parent
16f349459f
commit
04da030972
@@ -128,12 +128,20 @@ public final class PlatformGraphicsInfo {
|
||||
* the application has called an API that requires headful.
|
||||
*/
|
||||
public static String getDefaultHeadlessMessage() {
|
||||
return
|
||||
return PlatformGraphicsInfo.getToolkitID() == PlatformGraphicsInfo.TK_WAYLAND ?
|
||||
"""
|
||||
|
||||
Could not connect to the Wayland server (check WAYLAND_DISPLAY),
|
||||
or no headful library support was found,
|
||||
but this program performed an operation which requires it,
|
||||
"""
|
||||
:
|
||||
"""
|
||||
|
||||
No X11 DISPLAY variable was set,
|
||||
or no headful library support was found,
|
||||
but this program performed an operation which requires it.""";
|
||||
but this program performed an operation which requires it,
|
||||
""";
|
||||
}
|
||||
|
||||
public static String getSplashScreenLib() {
|
||||
|
||||
Reference in New Issue
Block a user