gnome-session r5353 - in trunk: . gnome-session
- From: vuntz svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-session r5353 - in trunk: . gnome-session
- Date: Tue, 24 Mar 2009 22:32:04 +0000 (UTC)
Author: vuntz
Date: Tue Mar 24 22:32:03 2009
New Revision: 5353
URL: http://svn.gnome.org/viewvc/gnome-session?rev=5353&view=rev
Log:
2009-03-24 Vincent Untz <vuntz gnome org>
* gnome-session/gsm-xsmp-client.c: (xsmp_get_discard_command):
uncomment
(xsmp_save): when saving the xsmp client to a desktop file, also save
the discard command since we'll want to use it at some point when
discarding the saved app.
Modified:
trunk/ChangeLog
trunk/gnome-session/gsm-xsmp-client.c
Modified: trunk/gnome-session/gsm-xsmp-client.c
==============================================================================
--- trunk/gnome-session/gsm-xsmp-client.c (original)
+++ trunk/gnome-session/gsm-xsmp-client.c Tue Mar 24 22:32:03 2009
@@ -403,7 +403,6 @@
return prop_to_command (prop);
}
-#if 0
static char *
xsmp_get_discard_command (GsmClient *client)
{
@@ -417,7 +416,6 @@
return prop_to_command (prop);
}
-#endif
static void
do_save_yourself (GsmXSMPClient *client,
@@ -623,6 +621,7 @@
GKeyFile *keyfile;
char *desktop_file_path = NULL;
char *exec_program = NULL;
+ char *exec_discard = NULL;
char *startup_id = NULL;
GError *local_error;
@@ -656,9 +655,17 @@
G_KEY_FILE_DESKTOP_KEY_EXEC,
exec_program);
+ exec_discard = xsmp_get_discard_command (client);
+ if (exec_discard)
+ g_key_file_set_string (keyfile,
+ G_KEY_FILE_DESKTOP_GROUP,
+ "X-GNOME-Autostart-discard-exec",
+ exec_discard);
+
out:
g_free (desktop_file_path);
g_free (exec_program);
+ g_free (exec_discard);
g_free (startup_id);
if (local_error != NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]