]> git.mdlowis.com Git - proto/labwc.git/commit
action: expand shell variables before execvp()
authorJohan Malm <jgm323@gmail.com>
Wed, 30 Jun 2021 18:56:31 +0000 (19:56 +0100)
committerJohan Malm <jgm323@gmail.com>
Wed, 30 Jun 2021 18:56:31 +0000 (19:56 +0100)
commitafe666fd6ed3232aee0bd8bf5fa062b980190ee8
tree22b1b12195b9ac52d4c8c671f5e1a20f06798148
parenta1ae16c1cf173dead8148b696fb730f40831cecc
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
include/common/buf.h
src/action.c
src/common/buf.c