#include <widgets/modest-main-window.h>
#include <string.h>
-static gboolean
+ static gboolean
on_idle_exit_modest (gpointer data)
{
/* Protect the Gtk calls */
if (strcmp (argv[1], "showui") == 0)
show_ui_without_top_application_method = TRUE;
}
+
+ if (!show_ui_without_top_application_method) {
+ g_print ("modest: use 'modest showui' to start from cmdline with UI\n");
+ }
if (!g_thread_supported())
g_thread_init (NULL);
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;
gtk_widget_show_all (GTK_WIDGET(main_win));
/* Remove new mail notifications if exist */
- modest_platform_remove_new_mail_notifications ();
+ modest_platform_remove_new_mail_notifications (FALSE);
}
gtk_main ();
cleanup:
gdk_threads_leave ();
- /* Remove new mail notifications if exist */
-/* modest_platform_remove_new_mail_notifications (); */
-
if (!modest_init_uninit ()) {
g_printerr ("modest: modest_init_uninit failed\n");
retval = 1;