[evolution/gnome-3-26] Bug 790326 - [evolution-backup] Allow running without GUI/DISPLAY
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-26] Bug 790326 - [evolution-backup] Allow running without GUI/DISPLAY
- Date: Wed, 15 Nov 2017 08:30:23 +0000 (UTC)
commit 63244cde40ee70994a1828b23045de6d844da069
Author: Milan Crha <mcrha redhat com>
Date: Wed Nov 15 09:25:14 2017 +0100
Bug 790326 - [evolution-backup] Allow running without GUI/DISPLAY
src/modules/backup-restore/evolution-backup-tool.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/modules/backup-restore/evolution-backup-tool.c
b/src/modules/backup-restore/evolution-backup-tool.c
index 690f81f..0d30a7a 100644
--- a/src/modules/backup-restore/evolution-backup-tool.c
+++ b/src/modules/backup-restore/evolution-backup-tool.c
@@ -888,9 +888,13 @@ main (gint argc,
&argc, &argv, NULL, options, GETTEXT_PACKAGE, &error);
if (error != NULL) {
- g_printerr ("%s\n", error->message);
- g_error_free (error);
- exit (EXIT_FAILURE);
+ if (gui_arg)
+ g_printerr ("Failed to initialize gtk+. Do not use --gui, to run without it. Reported
error: %s\n", error->message);
+
+ g_clear_error (&error);
+
+ if (gui_arg)
+ exit (EXIT_FAILURE);
}
if (opt_remaining != NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]