Add support for a prompt given as argument. - thinglaunch - A simple command and password promtper for X11.
(HTM) git clone git://bitreich.org/thinglaunch
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) LICENSE
---
(DIR) commit 3c24e44bec97808fe9489b9e58b01a18bc60a9d8
(DIR) parent a0a1f790e60975939f4af0cb291abb32372c8f9e
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Fri, 1 Jan 2016 12:40:01 +0100
Add support for a prompt given as argument.
Diffstat:
M thinglaunch.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/thinglaunch.c b/thinglaunch.c
@@ -99,6 +99,9 @@ main(int argc, char *argv[])
usage();
break;
} ARGEND;
+
+ if (argc > 0)
+ prompt = argv[0];
}
bzero(command, sizeof(command));