]> Dogcows Code - chaz/openbox/blobdiff - openbox/openbox.c
this move is not final
[chaz/openbox] / openbox / openbox.c
index 521469606bdeb89063bc5fe8dc4f154da4b3e770..4786ecc40ba4e6884ed79f0e2811bfaa5e3ff999 100644 (file)
@@ -414,3 +414,18 @@ ObState ob_state()
 {
     return state;
 }
+
+gchar *ob_expand_tilde(const gchar *f)
+{
+    gchar **spl;
+    gchar *ret, *mid;
+
+    if (!f)
+        return NULL;
+    spl = g_strsplit(f, "~", 0);
+    mid = g_strconcat(g_get_home_dir(), G_DIR_SEPARATOR_S, NULL);
+    ret = g_strjoinv(mid, spl);
+    g_free(mid);
+    g_strfreev(spl);
+    return ret;
+}
This page took 0.020183 seconds and 4 git commands to generate.