~alcinnz/hurl

a0a3f383b82542bad1a519093e3670fdb3056ba4 — Adrian Cochrane 4 years ago af23364
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)