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 ...@@ -9,13 +9,13 @@ def locate_mime_database
"/usr/share/mime/packages/freedesktop.org.xml" "/usr/share/mime/packages/freedesktop.org.xml"
].compact ].compact
path = possible_paths.find { |candidate| File.exist?(candidate) } path = possible_paths.find { |candidate| File.exist?(candidate) }
return path unless path.nil? return path unless path.nil?
raise(<<~ERROR) raise(<<~ERROR)
Could not find MIME type database in the following locations: #{possible_paths} 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 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 obtain a version of freedesktop.org.xml and set FREEDESKTOP_MIME_TYPES_PATH to the location
of that file. of that file.
ERROR ERROR
end end
...@@ -30,4 +30,4 @@ task :default do ...@@ -30,4 +30,4 @@ task :default do
end end
}) })
end end
end end
\ No newline at end of file
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