… | |
… | |
525 | char *f; |
525 | char *f; |
526 | |
526 | |
527 | if (file == NULL || *file == '\0') |
527 | if (file == NULL || *file == '\0') |
528 | return NULL; |
528 | return NULL; |
529 | |
529 | |
530 | /* search environment variables here too */ |
|
|
531 | if ((f = rxvt_File_search_path (path, file, ext)) == NULL) |
530 | f = rxvt_File_search_path (path, file, ext); |
532 | #ifdef PATH_ENV |
|
|
533 | if ((f = rxvt_File_search_path (getenv (PATH_ENV), file, ext)) == NULL) |
|
|
534 | #endif |
|
|
535 | f = rxvt_File_search_path (getenv ("PATH"), file, ext); |
|
|
536 | |
531 | |
537 | #ifdef DEBUG_SEARCH_PATH |
532 | #ifdef DEBUG_SEARCH_PATH |
538 | if (f) |
533 | if (f) |
539 | fprintf (stderr, "found: \"%s\"\n", f); |
534 | fprintf (stderr, "found: \"%s\"\n", f); |
540 | #endif |
535 | #endif |