mirror of https://github.com/davatorium/rofi.git
[DRun] Fix parsing subdirectories because of wrong suffix check
This commit is contained in:
parent
cdb1b96414
commit
703426716a
|
@ -339,10 +339,6 @@ static void walk_dir ( DRunModePrivateData *pd, const char *root, const char *di
|
||||||
if ( file->d_name[0] == '.' ) {
|
if ( file->d_name[0] == '.' ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// Skip files not ending on .desktop.
|
|
||||||
if ( !g_str_has_suffix ( file->d_name, ".desktop" ) ) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
switch ( file->d_type )
|
switch ( file->d_type )
|
||||||
{
|
{
|
||||||
case DT_LNK:
|
case DT_LNK:
|
||||||
|
@ -368,6 +364,11 @@ static void walk_dir ( DRunModePrivateData *pd, const char *root, const char *di
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Skip files not ending on .desktop.
|
||||||
|
if ( file->d_type != DT_DIR && !g_str_has_suffix ( file->d_name, ".desktop" ) ) {
|
||||||
|
g_free(filename);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
switch ( file->d_type )
|
switch ( file->d_type )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue