]> Dogcows Code - chaz/openbox/blobdiff - openbox/openbox.c
move expand_tilde to ob_expand_tilde in openbox.c to make it global.
[chaz/openbox] / openbox / openbox.c
index 521469606bdeb89063bc5fe8dc4f154da4b3e770..21f3a60604a6a0ba7854768668e069396feab506 100644 (file)
@@ -414,3 +414,13 @@ ObState ob_state()
 {
     return state;
 }
+
+gchar *ob_expand_tilde(const gchar *f)
+{
+    if (!f)
+        return NULL;
+    else if (f[0] != '~')
+        return g_strdup(f);
+    else
+        return g_strconcat(g_get_home_dir(), f+1, NULL);
+}
This page took 0.020539 seconds and 4 git commands to generate.