[Xfce4-commits] <postler:master> Ensure that Dexter is running at startup

Christian Dywan noreply at xfce.org
Wed Dec 8 03:10:03 CET 2010


Updating branch refs/heads/master
         to af3d4d32a1a20d510ceb807e9507c82e9083b247 (commit)
       from 7b3484f137190b6085580ce0c713045fb2c3412f (commit)

commit af3d4d32a1a20d510ceb807e9507c82e9083b247
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Dec 8 00:01:59 2010 +0100

    Ensure that Dexter is running at startup
    
    There is no automatic launching, so the simple workaround
    is to spawn it at startup. It's no problem if that fails.

 postler/dexter.vala |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/postler/dexter.vala b/postler/dexter.vala
index 515d9d0..812a502 100644
--- a/postler/dexter.vala
+++ b/postler/dexter.vala
@@ -25,6 +25,12 @@ namespace Dexter {
                 service = Bus.get_proxy_sync (BusType.SESSION,
                                               "org.elementary.dexterservice",
                                               "/org/elementary/dexterservice");
+                /* Ensure Dexter is running, ignore errors, without is fine */
+                Process.spawn_async (null, { "dexter", "-d" }, null,
+                    SpawnFlags.SEARCH_PATH
+                  | SpawnFlags.STDOUT_TO_DEV_NULL
+                  | SpawnFlags.STDERR_TO_DEV_NULL,
+                    null, null);
             } catch (GLib.Error error) {  }
         }
         public string? get_name (string email_address) {



More information about the Xfce4-commits mailing list