Don't crash on missing /usr/share/app-info/icons/
1 files changed, 1 insertions(+), 1 deletions(-) M src/Network/URI/XDG/AppStream.hs
M src/Network/URI/XDG/AppStream.hs => src/Network/URI/XDG/AppStream.hs +1 -1
@@ 195,7 195,7 @@ type IconCache = [FilePath] scanIconCache :: IO IconCache scanIconCache = do sharePaths <- listDirectory "/usr/share/app-info/icons/" `catch` handleListError varPaths <- listDirectory "/usr/share/app-info/icons/" varPaths <- listDirectory "/usr/share/app-info/icons/" `catch` handleListError paths <- forM (sharePaths ++ varPaths) (\x -> listDirectory x `catch` handleListError) return (concat paths ++ sharePaths ++ varPaths)