]> git.decadent.org.uk Git - ion3.git/blobdiff - mod_sm/sm.c
Imported Upstream version 20090110
[ion3.git] / mod_sm / sm.c
index 6971f7d1d6354f77ee926053f6ef7e43443c0b4e..84b30c3232c3ad5b575bf2245077c4e83b6989b0 100644 (file)
@@ -1,12 +1,9 @@
 /*
  * ion/mod_sm/sm.c
  *
- * Copyright (c) Tuomo Valkonen 2004-2006
+ * Copyright (c) Tuomo Valkonen 2004-2009
  *
- * Ion is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
+ * See the included file LICENSE for details.
  */
 
 #include <stdlib.h>
@@ -15,6 +12,7 @@
 #include <libtu/misc.h>
 #include <libtu/parser.h>
 #include <libtu/tokenizer.h>
+#include <libtu/util.h>
 
 #include <ioncore/common.h>
 #include <ioncore/global.h>
@@ -84,7 +82,7 @@ static void mod_sm_set_sessiondir()
      * to the session.
      */
     if(smdir!=NULL){
-        tmp=scat(smdir, "/ion3"); /* TODO: pwm<=>ion! */
+        tmp=scat3(smdir, "/", libtu_progbasename());
     }else if(id!=NULL){
         tmp=scat("gnome-session-", id);
         if(tmp!=NULL){