| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 #--------------------------------------------- | 2 #--------------------------------------------- |
| 3 # xdg-icon-resource | 3 # xdg-icon-resource |
| 4 # | 4 # |
| 5 # Utility script to install icons on a Linux desktop. | 5 # Utility script to install icons on a Linux desktop. |
| 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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 case "$(uname 2>/dev/null)" in | 419 case "$(uname 2>/dev/null)" in |
| 420 Darwin) | 420 Darwin) |
| 421 DE=darwin; | 421 DE=darwin; |
| 422 ;; | 422 ;; |
| 423 esac | 423 esac |
| 424 fi | 424 fi |
| 425 | 425 |
| 426 if [ x"$DE" = x"gnome" ]; then | 426 if [ x"$DE" = x"gnome" ]; then |
| 427 # gnome-default-applications-properties is only available in GNOME 2.x | 427 # gnome-default-applications-properties is only available in GNOME 2.x |
| 428 # but not in GNOME 3.x | 428 # but not in GNOME 3.x |
| 429 which gnome-default-applications-properties 2> /dev/null || DE="gnome3" | 429 which gnome-default-applications-properties > /dev/null 2> /dev/null || DE
="gnome3" |
| 430 fi | 430 fi |
| 431 } | 431 } |
| 432 | 432 |
| 433 #---------------------------------------------------------------------------- | 433 #---------------------------------------------------------------------------- |
| 434 # kfmclient exec/openURL can give bogus exit value in KDE <= 3.5.4 | 434 # kfmclient exec/openURL can give bogus exit value in KDE <= 3.5.4 |
| 435 # It also always returns 1 in KDE 3.4 and earlier | 435 # It also always returns 1 in KDE 3.4 and earlier |
| 436 # Simply return 0 in such case | 436 # Simply return 0 in such case |
| 437 | 437 |
| 438 kfmclient_fix_exit_code() | 438 kfmclient_fix_exit_code() |
| 439 { | 439 { |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 if [ x"$update" = x"yes" ] ; then | 860 if [ x"$update" = x"yes" ] ; then |
| 861 update_icon_database "$xdg_base_dir" | 861 update_icon_database "$xdg_base_dir" |
| 862 if [ -n "$dot_icon_dir" ] ; then | 862 if [ -n "$dot_icon_dir" ] ; then |
| 863 if [ -d "$dot_icon_dir/" -a ! -L "$dot_icon_dir" ] ; then | 863 if [ -d "$dot_icon_dir/" -a ! -L "$dot_icon_dir" ] ; then |
| 864 update_icon_database $dot_base_dir | 864 update_icon_database $dot_base_dir |
| 865 fi | 865 fi |
| 866 fi | 866 fi |
| 867 fi | 867 fi |
| 868 | 868 |
| 869 exit_success | 869 exit_success |
| OLD | NEW |