projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Fixes NB#78338, the summary.mmap files are deleted once the account is removed
[modest]
/
src
/
modest-main.c
diff --git
a/src/modest-main.c
b/src/modest-main.c
index
ebfe628
..
9278fab
100644
(file)
--- a/
src/modest-main.c
+++ b/
src/modest-main.c
@@
-90,6
+90,11
@@
main (int argc, char *argv[])
if (strcmp (argv[1], "showui") == 0)
show_ui_without_top_application_method = TRUE;
}
if (strcmp (argv[1], "showui") == 0)
show_ui_without_top_application_method = TRUE;
}
+
+ if (!show_ui_without_top_application_method) {
+ g_print ("modest: not showing UI\n");
+ g_print ("modest: use 'modest showui' to start with UI\n");
+ }
if (!g_thread_supported())
g_thread_init (NULL);
if (!g_thread_supported())
g_thread_init (NULL);
@@
-97,6
+102,12
@@
main (int argc, char *argv[])
gdk_threads_init ();
gdk_threads_enter ();
gdk_threads_init ();
gdk_threads_enter ();
+ if (!getenv("DISPLAY")) {
+ g_printerr ("modest: DISPLAY env variable is not set\n");
+ retval = 1;
+ goto cleanup;
+ }
+
if (!gtk_init_check (&argc, &argv)) {
g_printerr ("modest: failed to initialize gtk\n");
retval = 1;
if (!gtk_init_check (&argc, &argv)) {
g_printerr ("modest: failed to initialize gtk\n");
retval = 1;