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

Side by Side Diff: scripts/xdg-mime

Issue 6881074: Linux: fix a syntax error in the latest version of xdg-utils. Will report it. (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-icon-resource ('k') | scripts/xdg-open » ('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-mime 3 # xdg-mime
4 # 4 #
5 # Utility script to manipulate MIME related information 5 # Utility script to manipulate MIME related information
6 # on XDG compliant systems. 6 # on XDG compliant systems.
7 # 7 #
8 # Refer to the usage() function below for usage. 8 # Refer to the usage() function below for usage.
9 # 9 #
10 # Copyright 2009-2010, Fathi Boudra <fabo@freedesktop.org> 10 # Copyright 2009-2010, Fathi Boudra <fabo@freedesktop.org>
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 elif `dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/D Bus org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager > /dev/nul l 2>&1` ; then DE=gnome; 434 elif `dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/D Bus org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager > /dev/nul l 2>&1` ; then DE=gnome;
435 elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/nul l 2>&1; then DE=xfce; 435 elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/nul l 2>&1; then DE=xfce;
436 elif xprop -root 2> /dev/null | grep -i '^xfce_desktop_window' >/dev/null 2> &1; then DE=xfce 436 elif xprop -root 2> /dev/null | grep -i '^xfce_desktop_window' >/dev/null 2> &1; then DE=xfce
437 fi 437 fi
438 438
439 if [ x"$DE" = x"" ]; then 439 if [ x"$DE" = x"" ]; then
440 # fallback to checking $DESKTOP_SESSION 440 # fallback to checking $DESKTOP_SESSION
441 case "$DESKTOP_SESSION" in 441 case "$DESKTOP_SESSION" in
442 gnome) 442 gnome)
443 DE=gnome; 443 DE=gnome;
444 ;;
444 LXDE) 445 LXDE)
445 DE=lxde; 446 DE=lxde;
446 ;; 447 ;;
447 xfce|xfce4) 448 xfce|xfce4)
448 DE=xfce; 449 DE=xfce;
449 ;; 450 ;;
450 esac 451 esac
451 fi 452 fi
452 453
453 if [ x"$DE" = x"" ]; then 454 if [ x"$DE" = x"" ]; then
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 rm -f $kde_dir/$x.desktop 1315 rm -f $kde_dir/$x.desktop
1315 fi 1316 fi
1316 done 1317 done
1317 ;; 1318 ;;
1318 esac 1319 esac
1319 1320
1320 update_mime_database $xdg_base_dir 1321 update_mime_database $xdg_base_dir
1321 1322
1322 exit_success 1323 exit_success
1323 1324
OLDNEW
« no previous file with comments | « scripts/xdg-icon-resource ('k') | scripts/xdg-open » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698