diff options
author | Oliver Lehmann <oliver@FreeBSD.org> | 2005-04-13 22:08:04 +0000 |
---|---|---|
committer | Oliver Lehmann <oliver@FreeBSD.org> | 2005-04-13 22:08:04 +0000 |
commit | 2a0edd39d8a944a8de622b1c6f73f34071eeab69 (patch) | |
tree | 4c8081a0d8d8b9702dacd754f9a4018e33c69e09 /print/xfce4-print/files/patch-xfprint-manager::main.c | |
parent | Fix qtorrent with latest py-qt/py-sip. (diff) |
- 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
Notes
Notes:
svn path=/head/; revision=133284
Diffstat (limited to 'print/xfce4-print/files/patch-xfprint-manager::main.c')
-rw-r--r-- | print/xfce4-print/files/patch-xfprint-manager::main.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/print/xfce4-print/files/patch-xfprint-manager::main.c b/print/xfce4-print/files/patch-xfprint-manager::main.c new file mode 100644 index 000000000000..33c55a70fe77 --- /dev/null +++ b/print/xfce4-print/files/patch-xfprint-manager::main.c @@ -0,0 +1,33 @@ +--- xfprint-manager/main.c.orig Wed Apr 13 23:56:53 2005 ++++ xfprint-manager/main.c Wed Apr 13 23:55:57 2005 +@@ -101,22 +101,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); |