Skip to content

Commit

Permalink
Hot fix to settings app
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbor committed Apr 26, 2022
1 parent f5e4580 commit 34f8490
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pademelon-settings
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,8 @@ def read_desktop_application_files(paths):
config = configparser.ConfigParser()

for path in paths:
files.extend([f.path for f in os.scandir(path) if f.is_file() and f.path.endswith(DESKTOP_FILE_ENDING)])
if os.path.isdir(path):
files.extend([f.path for f in os.scandir(path) if f.is_file() and f.path.endswith(DESKTOP_FILE_ENDING)])

for filename in files:
if len(config.read(filename)) == 0:
Expand Down

0 comments on commit 34f8490

Please sign in to comment.