mirror of https://github.com/davatorium/rofi.git
DRun Check if filename ends in .desktop.
This commit is contained in:
parent
ef509865fb
commit
0d9d4d6c55
|
@ -315,7 +315,10 @@ 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:
|
||||||
|
|
Loading…
Reference in New Issue