| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 #--------------------------------------------- | 2 #--------------------------------------------- |
| 3 # xdg-email | 3 # xdg-email |
| 4 # | 4 # |
| 5 # Utility script to open the users favorite email program, using the | 5 # Utility script to open the users favorite email program, using the |
| 6 # RFC 2368 mailto: URI spec | 6 # RFC 2368 mailto: URI spec |
| 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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 case "$(uname 2>/dev/null)" in | 444 case "$(uname 2>/dev/null)" in |
| 445 Darwin) | 445 Darwin) |
| 446 DE=darwin; | 446 DE=darwin; |
| 447 ;; | 447 ;; |
| 448 esac | 448 esac |
| 449 fi | 449 fi |
| 450 | 450 |
| 451 if [ x"$DE" = x"gnome" ]; then | 451 if [ x"$DE" = x"gnome" ]; then |
| 452 # gnome-default-applications-properties is only available in GNOME 2.x | 452 # gnome-default-applications-properties is only available in GNOME 2.x |
| 453 # but not in GNOME 3.x | 453 # but not in GNOME 3.x |
| 454 which gnome-default-applications-properties > /dev/null 2> /dev/null || DE
="gnome3" | 454 which gnome-default-applications-properties > /dev/null 2>&1 || DE="gnome
3" |
| 455 fi | 455 fi |
| 456 } | 456 } |
| 457 | 457 |
| 458 #---------------------------------------------------------------------------- | 458 #---------------------------------------------------------------------------- |
| 459 # kfmclient exec/openURL can give bogus exit value in KDE <= 3.5.4 | 459 # kfmclient exec/openURL can give bogus exit value in KDE <= 3.5.4 |
| 460 # It also always returns 1 in KDE 3.4 and earlier | 460 # It also always returns 1 in KDE 3.4 and earlier |
| 461 # Simply return 0 in such case | 461 # Simply return 0 in such case |
| 462 | 462 |
| 463 kfmclient_fix_exit_code() | 463 kfmclient_fix_exit_code() |
| 464 { | 464 { |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 ;; | 837 ;; |
| 838 | 838 |
| 839 generic|lxde) | 839 generic|lxde) |
| 840 open_generic "${mailto}" | 840 open_generic "${mailto}" |
| 841 ;; | 841 ;; |
| 842 | 842 |
| 843 *) | 843 *) |
| 844 exit_failure_operation_impossible "no method available for opening '${mailto
}'" | 844 exit_failure_operation_impossible "no method available for opening '${mailto
}'" |
| 845 ;; | 845 ;; |
| 846 esac | 846 esac |
| OLD | NEW |