Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: scripts/xdg-open.in

Issue 6873103: Linux: update xdg-utils to the latest version to get relevant xdg-mime fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/xdg-utils/
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « scripts/xdg-open ('k') | scripts/xdg-screensaver » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 #--------------------------------------------- 2 #---------------------------------------------
3 # xdg-open 3 # xdg-open
4 # 4 #
5 # Utility script to open a URL in the registered default application. 5 # Utility script to open a URL in the registered default application.
6 # 6 #
7 # Refer to the usage() function below for usage. 7 # Refer to the usage() function below for usage.
8 # 8 #
9 # Copyright 2009-2010, Fathi Boudra <fabo@freedesktop.org> 9 # Copyright 2009-2010, Fathi Boudra <fabo@freedesktop.org>
10 # Copyright 2009-2010, Rex Dieter <rdieter@fedoraproject.org> 10 # Copyright 2009-2010, Rex Dieter <rdieter@fedoraproject.org>
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 fi 248 fi
249 249
250 detectDE 250 detectDE
251 251
252 if [ x"$DE" = x"" ]; then 252 if [ x"$DE" = x"" ]; then
253 DE=generic 253 DE=generic
254 fi 254 fi
255 255
256 # if BROWSER variable is not set, check some well known browsers instead 256 # if BROWSER variable is not set, check some well known browsers instead
257 if [ x"$BROWSER" = x"" ]; then 257 if [ x"$BROWSER" = x"" ]; then
258 BROWSER=links2:links:lynx:w3m 258 BROWSER=links2:elinks:links:lynx:w3m
259 if [ -n "$DISPLAY" ]; then 259 if [ -n "$DISPLAY" ]; then
260 BROWSER=firefox:mozilla:epiphany:konqueror:chromium-browser:google-chrom e:$BROWSER 260 BROWSER=x-www-browser:firefox:seamonkey:mozilla:epiphany:konqueror:chrom ium-browser:google-chrome:$BROWSER
261 fi 261 fi
262 fi 262 fi
263 263
264 case "$DE" in 264 case "$DE" in
265 kde) 265 kde)
266 open_kde "$url" 266 open_kde "$url"
267 ;; 267 ;;
268 268
269 gnome*) 269 gnome*)
270 open_gnome "$url" 270 open_gnome "$url"
271 ;; 271 ;;
272 272
273 xfce) 273 xfce)
274 open_xfce "$url" 274 open_xfce "$url"
275 ;; 275 ;;
276 276
277 lxde) 277 lxde)
278 open_lxde "$url" 278 open_lxde "$url"
279 ;; 279 ;;
280 280
281 generic) 281 generic)
282 open_generic "$url" 282 open_generic "$url"
283 ;; 283 ;;
284 284
285 *) 285 *)
286 exit_failure_operation_impossible "no method available for opening '$url'" 286 exit_failure_operation_impossible "no method available for opening '$url'"
287 ;; 287 ;;
288 esac 288 esac
OLDNEW
« no previous file with comments | « scripts/xdg-open ('k') | scripts/xdg-screensaver » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698