summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-03-31 14:04:11 +0200
committerBastien Nocera <hadess@hadess.net>2022-03-31 14:04:11 +0200
commit5d21478ecb61ffe995a3f6c9bc8666c993382a02 (patch)
tree0d5259a3fd0dc3f79bc3f56ae0bd883d3456ddda
parent1a0e357ab7b2ddf0d30320ebb1e956efd8d25711 (diff)
downloadtotem-5d21478ecb61ffe995a3f6c9bc8666c993382a02.tar.gz
main: Remove UI when XInitThreads() fails
We fixed those bugs in Xlib nearly 20 years ago, we should be out of the woods now.
-rw-r--r--src/totem.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/totem.c b/src/totem.c
index db1e14884..3794f5497 100644
--- a/src/totem.c
+++ b/src/totem.c
@@ -32,7 +32,6 @@
#include <glib-object.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
-#include <libhandy-1/handy.h>
#include <locale.h>
#include <string.h>
@@ -42,7 +41,6 @@
#endif
#include "totem.h"
-#include "totem-private.h"
int
main (int argc, char **argv)
@@ -56,12 +54,7 @@ main (int argc, char **argv)
#ifdef GDK_WINDOWING_X11
if (XInitThreads () == 0)
- {
- gtk_init (&argc, &argv);
- hdy_init ();
- g_set_application_name (_("Videos"));
- totem_object_show_error_and_exit (_("Could not initialize the thread-safe libraries."), _("Verify your system installation. Totem will now exit."), NULL);
- }
+ g_error ("XInitThreads() failed, OS is broken. Contact your provider for support.");
#endif
g_set_prgname ("totem");