Bug 1946405 - Don't start nsGTKRemoteServer unless X11 server is present r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D250580
This commit is contained in:
committed by
ktomlinson@mozilla.com
parent
d4794289e7
commit
3c8eda2af8
@@ -18,9 +18,7 @@
|
||||
|
||||
#include "nsGTKToolkit.h"
|
||||
|
||||
#ifdef MOZ_WAYLAND
|
||||
# include "mozilla/WidgetUtilsGtk.h"
|
||||
#endif
|
||||
#include "mozilla/X11Util.h"
|
||||
|
||||
nsresult nsGTKRemoteServer::Startup(const char* aAppName,
|
||||
const char* aProfileName) {
|
||||
@@ -30,11 +28,9 @@ nsresult nsGTKRemoteServer::Startup(const char* aAppName,
|
||||
return NS_ERROR_ALREADY_INITIALIZED;
|
||||
}
|
||||
|
||||
#ifdef MOZ_WAYLAND
|
||||
if (mozilla::widget::GdkIsWaylandDisplay()) {
|
||||
if (!mozilla::DefaultXDisplay()) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
#endif
|
||||
|
||||
XRemoteBaseStartup(aAppName, aProfileName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user