Johan Malm
fd7ec0ab95
buf.c: fix bug in environment variable expansion
...
Allow underscore in environment variable names.
Closes issue #439
Helped-by: @Consolatis
...who both found the bug and told us how to fix it :)
2022-07-15 21:51:28 +02:00
Johan Malm
5b34c81768
Fix trivial coding style breaches
2022-04-04 20:53:36 +01:00
Johan Malm
e227de1346
Add SPDX identifiers
2021-11-13 21:56:53 +00:00
Johan Malm
2d4ca16db8
buf.c: handle variables with curly braces
...
In buf_expand_shell_variables(), corrently resolve ${foo}
rather than just $foo
2021-10-11 22:31:38 +01:00
Johan Malm
aa4668c792
buf.c: correctly handle unset environment variables
2021-10-11 22:28:17 +01:00
Johan Malm
afe666fd6e
action: expand shell variables before execvp()
...
Expanding shell variables, including tilde, enables the following type
of keybind:
<keyboard>
<keybind key="XF86AudioMute">
<action name="Execute">
<command>bash ~/mute-script.sh</command>
</action>
</keybind>
</keyboard>
Fixes issue #32
2021-06-30 19:56:31 +01:00
Johan Malm
96e05057a3
Update .clang-format
...
Align with wlroots style
2020-09-28 20:41:41 +01:00
Johan Malm
53266a0d5a
include/: refactor header files
2020-07-31 21:31:03 +01:00
Johan Malm
bc51e0ad2f
src/config/rcxml.c: parse xml from buffer
...
Avoid unit tests writing to/from files by using xmlParseMemory() instead
of xmlReadFile().
2020-06-09 21:40:46 +01:00