Commits

Anonymous committed 4769e87

Use xdg-open instead of gnome open, quote URL properly.

  • Participants
  • Parent commits 154f08b

Comments (0)

Files changed (1)

scripts/djenv.mercurial

 
 # System-independent open
 function run_open() {
-    if [ -x /usr/bin/gnome-open ]; then gnome-open $@
-    else open $@; fi
+    if which xdg-open; then xdg-open "$@"
+    else open "$@"; fi
 }
 
 # Shut down hg server