You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

21 lines
592B

  1. //! Specification: <https://specifications.freedesktop.org/mime-apps-spec/mime-apps-spec-latest.html>
  2. //!
  3. //! Reference implementation:
  4. //! <https://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-utils-common.in>
  5. mod utilities;
  6. pub use utilities::*;
  7. #[cfg(test)]
  8. mod tests {
  9. #[test]
  10. fn it_works() {
  11. use utilities::*;
  12. eprintln!("{:?}", query_default_app("image/jpeg"));
  13. eprintln!("{:?}", query_default_app("text/html"));
  14. eprintln!("{:?}", query_default_app("video/mp4"));
  15. eprintln!("{:?}", query_default_app("application/pdf"));
  16. }
  17. }