mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Do not load itself if given as parameter
This commit is contained in:
parent
dcd742392f
commit
89589e95b1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user