blam r549 - trunk/src
- From: cmartin svn gnome org
- To: svn-commits-list gnome org
- Subject: blam r549 - trunk/src
- Date: Sat, 19 Apr 2008 22:39:21 +0100 (BST)
Author: cmartin
Date: Sat Apr 19 21:39:21 2008
New Revision: 549
URL: http://svn.gnome.org/viewvc/blam?rev=549&view=rev
Log:
Setup the next-session-start with the GNOME session.
Modified:
trunk/src/Application.cs
Modified: trunk/src/Application.cs
==============================================================================
--- trunk/src/Application.cs (original)
+++ trunk/src/Application.cs Sat Apr 19 21:39:21 2008
@@ -73,6 +73,7 @@
private uint mAutoRefreshId;
DBusMgr dbusmgr = null;
+ Gnome.Client client = null;
private MessageConnection.MessageReceivedHandler mIpcHandler;
@@ -125,9 +126,10 @@
mIpcHandler = new MessageConnection.MessageReceivedHandler (MessageReceivedCb) ;
messageConn.SetCallback (mIpcHandler);
- Gnome.Client client = new Gnome.Client();
+ client = new Gnome.Client();
client.SaveYourself += SaveMyself;
client.Die += QuitActivated;
+ client.RestartStyle = RestartStyle.IfRunning;
Proxy.InitProxy ();
Utils.GeckoInit ();
@@ -465,7 +467,9 @@
public void SaveMyself(object obj, SaveYourselfArgs args)
{
- QuitActivated(obj, null);
+ string[] argv = {"blam"};
+
+ client.SetRestartCommand(1, argv);
}
public void QuitActivated(object obj, EventArgs args)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]