Skip to content
Browse files

Add xdg-open support to OpenURL

* This is mostly standard on Linux-based desktop environments and
  respects users' browser settings in their desktop environment, unlike
  sensible-browser; but still allow falling back to sensible-browser
  • Loading branch information...
1 parent 4eca304 commit 66a0773f6b0ea34f5c664a97a488d11169d0ddbb @aripollak aripollak committed with Jul 3, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 autoload/rails.vim
2 autoload/rails.vim
@@ -1334,6 +1334,8 @@ function! s:initOpenURL()
command -bar -nargs=1 OpenURL :!open <args>
elseif has("gui_win32")
command -bar -nargs=1 OpenURL :!start cmd /cstart /b <args>
+ elseif executable("xdg-open")
+ command -bar -nargs=1 OpenURL :!xdg-open <args>
elseif executable("sensible-browser")
command -bar -nargs=1 OpenURL :!sensible-browser <args>
elseif executable('launchy')

0 comments on commit 66a0773

Please sign in to comment.
Something went wrong with that request. Please try again.