zeitgeist team mailing list archive
-
zeitgeist team
-
Mailing list archive
-
Message #04103
[Branch ~zeitgeist/zeitgeist/bluebird] Rev 266: Add FIXME about --replace
------------------------------------------------------------
revno: 266
committer: Siegfried-Angel Gevatter Pujals <siegfried@xxxxxxxxxxxx>
branch nick: bluebird
timestamp: Sun 2011-09-18 15:18:23 +0200
message:
Add FIXME about --replace
modified:
src/zeitgeist-daemon.vala
--
lp:~zeitgeist/zeitgeist/bluebird
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird
Your team Zeitgeist Framework Team is subscribed to branch lp:~zeitgeist/zeitgeist/bluebird.
To unsubscribe from this branch go to https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird/+edit-subscription
=== modified file 'src/zeitgeist-daemon.vala'
--- src/zeitgeist-daemon.vala 2011-09-17 19:38:43 +0000
+++ src/zeitgeist-daemon.vala 2011-09-18 13:18:23 +0000
@@ -265,6 +265,19 @@
}
}
+ private static void handle_existing_instance ()
+ {
+ if (!replace_mode)
+ {
+ stderr.printf ("Could not aquire name\n");
+ exit (10);
+ }
+
+ // FIXME: implement --replace and --quit
+ // running_interface = ...
+ // running_interface.quit ();
+ }
+
static void run ()
{
// TODO: look at zeitgeist/singleton.py
@@ -272,7 +285,7 @@
BusNameOwnerFlags.NONE,
on_bus_aquired,
() => {},
- () => stderr.printf ("Could not aquire name\n"));
+ handle_existing_instance);
mainloop = new MainLoop ();
mainloop.run ();