From 2a0edd39d8a944a8de622b1c6f73f34071eeab69 Mon Sep 17 00:00:00 2001 From: Oliver Lehmann Date: Wed, 13 Apr 2005 22:08:04 +0000 Subject: - make xfprint work o it will tell you now that you have to configure it first using the Xfce settings manager instead of coredumping o if you configured it, it will work now (-Wl,-E was missing in LDFLAGS) - bump PORTREVISION --- print/xfce4-print/files/patch-xfprint::main.c | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 print/xfce4-print/files/patch-xfprint::main.c (limited to 'print/xfce4-print/files/patch-xfprint::main.c') diff --git a/print/xfce4-print/files/patch-xfprint::main.c b/print/xfce4-print/files/patch-xfprint::main.c new file mode 100644 index 000000000000..900a89423c5f --- /dev/null +++ b/print/xfce4-print/files/patch-xfprint::main.c @@ -0,0 +1,33 @@ +--- xfprint/main.c.orig Wed Apr 13 23:55:06 2005 ++++ xfprint/main.c Wed Apr 13 23:55:07 2005 +@@ -87,22 +87,17 @@ + mcs_client_add_channel (client, CHANNEL); + + if (mcs_client_get_setting (client, "XfPrint/system", CHANNEL, &setting) == MCS_SUCCESS) { +- if (!load_printing_system (setting->data.v_string)) +- g_error ("Unable to load printing system module %s", setting->data.v_string); ++ if (!load_printing_system (setting->data.v_string) && strncmp(setting->data.v_string,"file_plugin.so",14) == 0) { ++ g_print ("Configure your printing system using the Xfce Settings Manager first\n"); ++ exit (EXIT_FAILURE); ++ } else if (!load_printing_system (setting->data.v_string) ) { ++ g_error ("Unable to load printing system module %s", setting->data.v_string); ++ } + mcs_setting_free (setting); + } + else { +- gchar *default_system = NULL; +- +- g_warning ("No mcs-setting found for XfPrint/system in channel %s, using default printing-system", CHANNEL); +- +- default_system = g_build_filename (PLUGIN_DIR, "file_plugin.so", NULL); +- +- if (!load_printing_system (default_system)) { +- g_error ("Unable to load default printing system module %s", default_system); +- } +- +- g_free (default_system); ++ g_print ("Configure your printing system using the Xfce Settings Manager first\n"); ++ exit (EXIT_FAILURE); + } + + mcs_client_destroy (client); -- cgit v1.2.3