DRun Check if filename ends in .desktop.

This commit is contained in:
Dave Davenport 2016-08-30 17:41:30 +02:00
parent ef509865fb
commit 0d9d4d6c55
1 changed files with 18 additions and 15 deletions

View File

@ -315,7 +315,10 @@ static void walk_dir ( DRunModePrivateData *pd, const char *root, const char *di
if ( file->d_name[0] == '.' ) {
continue;
}
// Skip files not ending on .desktop.
if ( !g_str_has_suffix ( file->d_name, ".desktop" ) ) {
continue;
}
switch ( file->d_type )
{
case DT_LNK: