Commit 574ae9e4 by Jon Wood

Add support for MacPorts

Closes #124
parent 9128261e
...@@ -6,6 +6,7 @@ def locate_mime_database ...@@ -6,6 +6,7 @@ def locate_mime_database
(File.expand_path(ENV["FREEDESKTOP_MIME_TYPES_PATH"]) if ENV["FREEDESKTOP_MIME_TYPES_PATH"]), (File.expand_path(ENV["FREEDESKTOP_MIME_TYPES_PATH"]) if ENV["FREEDESKTOP_MIME_TYPES_PATH"]),
"/usr/local/share/mime/packages/freedesktop.org.xml", "/usr/local/share/mime/packages/freedesktop.org.xml",
"/opt/homebrew/share/mime/packages/freedesktop.org.xml", "/opt/homebrew/share/mime/packages/freedesktop.org.xml",
"/opt/local/share/mime/packages/freedesktop.org.xml",
"/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) }
......
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