mirror of https://github.com/davatorium/rofi.git
[RUN] Report the expanded PATH entry in debug output
This commit is contained in:
parent
dc2de0d042
commit
9bd17ddfd0
|
@ -233,9 +233,9 @@ static char ** get_apps ( unsigned int *length )
|
||||||
for ( const char *dirname = strtok_r ( path, sep, &strtok_savepointer ); dirname != NULL; dirname = strtok_r ( NULL, sep, &strtok_savepointer ) ) {
|
for ( const char *dirname = strtok_r ( path, sep, &strtok_savepointer ); dirname != NULL; dirname = strtok_r ( NULL, sep, &strtok_savepointer ) ) {
|
||||||
char *fpath = rofi_expand_path ( dirname );
|
char *fpath = rofi_expand_path ( dirname );
|
||||||
DIR *dir = opendir ( fpath );
|
DIR *dir = opendir ( fpath );
|
||||||
|
g_debug ( "Checking path %s for executable.", fpath );
|
||||||
g_free ( fpath );
|
g_free ( fpath );
|
||||||
|
|
||||||
g_debug ( "Checking path %s for executable.", dirname );
|
|
||||||
if ( dir != NULL ) {
|
if ( dir != NULL ) {
|
||||||
struct dirent *dent;
|
struct dirent *dent;
|
||||||
gsize dirn_len = 0;
|
gsize dirn_len = 0;
|
||||||
|
|
Loading…
Reference in New Issue