summaryrefslogtreecommitdiff
path: root/openbox/actions
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/actions')
-rw-r--r--openbox/actions/execute.c3
-rw-r--r--openbox/actions/restart.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/openbox/actions/execute.c b/openbox/actions/execute.c
index 6b84ce40..5a747270 100644
--- a/openbox/actions/execute.c
+++ b/openbox/actions/execute.c
@@ -2,6 +2,7 @@
#include "openbox/event.h"
#include "openbox/startupnotify.h"
#include "openbox/screen.h"
+#include "obt/paths.h"
#include "gettext.h"
typedef struct {
@@ -39,7 +40,7 @@ static gpointer setup_func(xmlNodePtr node)
(n = obt_parse_find_node(node, "execute")))
{
gchar *s = obt_parse_node_string(n);
- o->cmd = parse_expand_tilde(s);
+ o->cmd = obt_paths_expand_tilde(s);
g_free(s);
}
diff --git a/openbox/actions/restart.c b/openbox/actions/restart.c
index 0afe8bf0..47f332b1 100644
--- a/openbox/actions/restart.c
+++ b/openbox/actions/restart.c
@@ -1,5 +1,6 @@
#include "openbox/actions.h"
#include "openbox/openbox.h"
+#include "obt/paths.h"
typedef struct {
gchar *cmd;
@@ -25,7 +26,7 @@ static gpointer setup_func(xmlNodePtr node)
(n = obt_parse_find_node(node, "execute")))
{
gchar *s = obt_parse_node_string(n);
- o->cmd = parse_expand_tilde(s);
+ o->cmd = obt_paths_expand_tilde(s);
g_free(s);
}
return o;