Commit 00fbbd4c by Jon Wood Committed by GitHub

Merge pull request #109 from indiebrain/fix-mime-type-package-name-in-documentation

Fix mime type database package name in docs
parents 78b9da8d 59f46bb5
......@@ -9,13 +9,13 @@ def locate_mime_database
"/usr/share/mime/packages/freedesktop.org.xml"
].compact
path = possible_paths.find { |candidate| File.exist?(candidate) }
return path unless path.nil?
raise(<<~ERROR)
Could not find MIME type database in the following locations: #{possible_paths}
Ensure you have either installed the shared-mime-types package for your distribution, or
obtain a version of freedesktop.org.xml and set FREEDESKTOP_MIME_TYPES_PATH to the location
Ensure you have either installed the shared-mime-info package for your distribution, or
obtain a version of freedesktop.org.xml and set FREEDESKTOP_MIME_TYPES_PATH to the location
of that file.
ERROR
end
......@@ -30,4 +30,4 @@ task :default do
end
})
end
end
\ No newline at end of file
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment