/[packages]/cauldron/xdg-utils/current/SOURCES/xdg-utils-1.0.2-email_silent_errors.patch
ViewVC logotype

Annotation of /cauldron/xdg-utils/current/SOURCES/xdg-utils-1.0.2-email_silent_errors.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 209 - (hide annotations) (download)
Fri Jan 7 09:52:12 2011 UTC (13 years, 1 month ago) by dmorgan
File size: 932 byte(s)
imported package xdg-utils
1 dmorgan 209 Index: scripts/xdg-email
2     ===================================================================
3     --- scripts/xdg-email
4     +++ scripts/xdg-email 2011-01-07 10:53:33.713814271 +0100
5     @@ -242,7 +242,13 @@
6     exit_failure_operation_failed()
7     {
8     if [ $# -gt 0 ]; then
9     - echo "xdg-email: $@" >&2
10     + if which zenity > /dev/null 2> /dev/null; then
11     + zenity --error --text="$@"
12     + elif which kdialog > /dev/null 2> /dev/null; then
13     + kdialog --error "$@"
14     + else
15     + echo "xdg-email: $@" >&2
16     + fi
17     fi
18    
19     exit 4
20     @@ -492,13 +498,13 @@
21     gvfs-open "$1"
22     else
23     DEBUG 1 "Running gnome-open \"$1\""
24     - gnome-open "$1"
25     + msg=$(gnome-open "$1" 2>&1)
26     fi
27    
28     if [ $? -eq 0 ]; then
29     exit_success
30     else
31     - exit_failure_operation_failed
32     + exit_failure_operation_failed "$msg"
33     fi
34     }
35    
36    
37    

  ViewVC Help
Powered by ViewVC 1.1.30