Make shell command and its option rc file options instead of hardcoded strings.
authorLaurent Monin <geeqie@norz.org>
Thu, 22 May 2008 20:22:13 +0000 (20:22 +0000)
committerLaurent Monin <geeqie@norz.org>
Thu, 22 May 2008 20:22:13 +0000 (20:22 +0000)
commitb5d0f1f91b10a1efb6bea5fe4878d946b18d124e
tree0921c04a17dbbd544681b16b63b5465b71bde25d
parent94c67ee52b2e81260f2f63c17771c4902942857a
Make shell command and its option rc file options instead of hardcoded strings.
This allows users to modify the shell command that execute "editors".
Two new options appear in rc file:
- shell.path (default to "/bin/sh")
- shell.options (default to "-c")

These options can only be changed from the rc file, not at runtime.
Tests are made to check that shell.path is not empty and lead to
an executable file.
src/editors.c
src/main.c
src/main.h
src/options.h
src/rcfile.c