This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 5th, 2011  |  syntax: Diff  |  size: 0.54 KB  |  views: 142  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff -ruNa a/scripts/xdg-open b/scripts/xdg-open
  2. --- a/scripts/xdg-open  2011-01-01 11:03:14.000000000 +0100
  3. +++ b/scripts/xdg-open  2011-02-05 13:48:05.189919333 +0100
  4. @@ -426,6 +426,13 @@
  5.  
  6.          open_generic_xdg_mime "$file"
  7.  
  8. +        if mimeo -h 2>/dev/null 1>&2; then
  9. +            mimeo "$1"
  10. +            if [ $? -eq 0 ]; then
  11. +                exit_success
  12. +            fi
  13. +        fi
  14. +
  15.          if [ -f /etc/debian_version ] &&
  16.              which run-mailcap 2>/dev/null 1>&2; then
  17.              run-mailcap --action=view "$file"
clone this paste RAW Paste Data