Do not load itself if given as parameter

This commit is contained in:
Sanel Zukan 2012-04-09 11:54:16 +00:00
parent dcd742392f
commit 89589e95b1

View File

@ -539,6 +539,10 @@ int main(int argc, char** argv) {
const char *cwd, *launch_type;
cwd = launch_type = 0;
/* in case if ede-launch launches itself; just skip ourself and use the rest of arguments */
if(strstr(argv[ca], "ede-launch"))
ca++;
/* parse args and stop as soon as detected first non-parameter value (not counting parameter values) */
for(; ca < argc; ca++) {
if(argv[ca][0] != '-') break;