thinglaunch

A simple command and password prompter for X11.
git clone git://r-36.net/thinglaunch
Log | Files | Refs | LICENSE

commit c13c797ba4f26cdbff560020a815fea564d8c60b
parent 5502b4594bac02c6091df6479aad7e9f7a754899
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sun, 27 Mar 2011 20:53:31 +0200

Fixing the symlink and shortening exec.

Diffstat:
Makefile | 2+-
thinglaunch.c | 9+--------
2 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/Makefile b/Makefile @@ -28,7 +28,7 @@ ${OBJ}: config.mk ${NAME}: ${OBJ} @echo CC -o $@ @${CC} -o $@ ${OBJ} ${LDFLAGS} - @[ ! -e thingaskpass ] && ln -s ${NAME} thingaskpass + @ln -s ${NAME} thingaskpass 2>/dev/null; true clean: @echo cleaning diff --git a/thinglaunch.c b/thinglaunch.c @@ -433,7 +433,6 @@ void execcmd(void) { char *shell; - char *argv[4]; XDestroyWindow(dpy, win); @@ -455,14 +454,8 @@ execcmd(void) if (!shell) shell = "/bin/sh"; - argv[0] = basename(shell); - argv[1] = "-c"; - argv[2] = cbuf; - argv[3] = NULL; - - execv(shell, argv); + execlp(shell, basename(shell), "-c", cbuf, (char *)NULL); die("aiee, after exec"); - }