From 2f858a1adaef17241ca6fda973f2b867b25e1971 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Wed, 20 Nov 2019 22:10:03 -0500 Subject: input_cmd_xkb_file: allow shell path expansion This allows for shell path expansion for input_cmd_xkb_file. The logic has been extracted from output_cmd_background --- include/stringop.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/stringop.h') diff --git a/include/stringop.h b/include/stringop.h index 2aabcee7..e3f4f0f7 100644 --- a/include/stringop.h +++ b/include/stringop.h @@ -1,6 +1,7 @@ #ifndef _SWAY_STRINGOP_H #define _SWAY_STRINGOP_H +#include #include "list.h" void strip_whitespace(char *str); @@ -26,4 +27,7 @@ char *join_args(char **argv, int argc); // Split string into 2 by delim, handle quotes char *argsep(char **stringp, const char *delim, char *matched_delim); +// Expand a path using shell replacements such as $HOME and ~ +bool expand_path(char **path); + #endif -- cgit v1.2.3-70-g09d2