[Xfce4-commits] <libxfce4ui:new-sm-client> fix naming of state file

Brian J. Tarricone brian at tarricone.org
Thu Sep 17 14:20:02 CEST 2009


Updating branch refs/heads/kelnos/new-sm-client
         to b159e5ef751ef1500e3b03be0ee525393bdbd4e8 (commit)
       from 77c8ec46e67c326b423c4d7a956f802d142399aa (commit)

commit b159e5ef751ef1500e3b03be0ee525393bdbd4e8
Author: Brian J. Tarricone <brian at tarricone.org>
Date:   Thu Sep 17 05:17:25 2009 -0700

    fix naming of state file

 libxfce4ui/xfce-sm-client.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/libxfce4ui/xfce-sm-client.c b/libxfce4ui/xfce-sm-client.c
index f1870aa..2d4908a 100644
--- a/libxfce4ui/xfce-sm-client.c
+++ b/libxfce4ui/xfce-sm-client.c
@@ -2084,7 +2084,7 @@ xfce_sm_client_set_clone_command(XfceSMClient *sm_client,
 {
     g_return_if_fail(XFCE_IS_SM_CLIENT(sm_client));
     sm_client->clone_command = copy_command(sm_client->clone_command,
-                                                  clone_command);
+                                            clone_command);
 #ifdef HAVE_LIBSM
     xfce_sm_client_set_property_from_command(sm_client, SmCloneCommand,
                                              sm_client->clone_command,
@@ -2112,7 +2112,7 @@ xfce_sm_client_set_restart_command(XfceSMClient *sm_client,
 {
     g_return_if_fail(XFCE_IS_SM_CLIENT(sm_client));
     sm_client->restart_command = copy_command(sm_client->restart_command,
-                                                    restart_command);
+                                              restart_command);
 #ifdef HAVE_LIBSM
     xfce_sm_client_set_property_from_command(sm_client, SmRestartCommand,
                                              sm_client->restart_command,
@@ -2140,7 +2140,7 @@ xfce_sm_client_set_discard_command(XfceSMClient *sm_client,
 {
     g_return_if_fail(XFCE_IS_SM_CLIENT(sm_client));
     sm_client->discard_command = copy_command(sm_client->discard_command,
-                                                    discard_command);
+                                              discard_command);
 #ifdef HAVE_LIBSM
     xfce_sm_client_set_property_from_command(sm_client, SmDiscardCommand,
                                              sm_client->discard_command,
@@ -2247,13 +2247,13 @@ xfce_sm_client_get_state_file(XfceSMClient *sm_client)
     resource = g_strdup_printf("sessions/%s-%s.state",
                                sm_client->program,
                                sm_client->client_id);
-    for(p = resource; *p; p++) {
+    for(p = resource+9; *p; p++) {
         if(*p == '/')
             *p = '_';
     }
 
     sm_client->state_file = xfce_resource_save_location(XFCE_RESOURCE_CACHE,
-                                                              resource, TRUE);
+                                                        resource, TRUE);
     if(!sm_client->state_file) {
         g_critical("XfceSMClient: Unable to create state file as "
                    "\"$XDG_CACHE_HOME/%s\"", resource);



More information about the Xfce4-commits mailing list