diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-04-19 09:26:35 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-04-19 09:26:35 +0200 |
commit | dc2de0d0426cdca2e5ba6e29e65bfae6e577a483 (patch) | |
tree | 4b1809e0889614c2336612de0e595a20e018d2db /source/dialogs | |
parent | 854304ca2f32c38f06a25ff0710af098a5d120be (diff) |
[RUN] Expand the paths found in /home/mkoedam/.local/bin/:/opt/mpd/bin/:/home/mkoedam/.local/bin/:/opt/mpd/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
Diffstat (limited to 'source/dialogs')
-rw-r--r-- | source/dialogs/run.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/dialogs/run.c b/source/dialogs/run.c index d596314e..a597abc1 100644 --- a/source/dialogs/run.c +++ b/source/dialogs/run.c @@ -231,7 +231,9 @@ static char ** get_apps ( unsigned int *length ) const char *const sep = ":"; char *strtok_savepointer = NULL; for ( const char *dirname = strtok_r ( path, sep, &strtok_savepointer ); dirname != NULL; dirname = strtok_r ( NULL, sep, &strtok_savepointer ) ) { - DIR *dir = opendir ( dirname ); + char *fpath = rofi_expand_path ( dirname ); + DIR *dir = opendir ( fpath ); + g_free ( fpath ); g_debug ( "Checking path %s for executable.", dirname ); if ( dir != NULL ) { |