updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xdg-utils-rox / rox.patch
blob430c78a4a877b3d0cafe7688a41a2dfe34474e8a
1 diff -aur xdg-utils/scripts/xdg-open.in xdg-utils.new/scripts/xdg-open.in
2 --- xdg-utils/scripts/xdg-open.in 2009-11-07 23:15:29.022492880 -0600
3 +++ xdg-utils.new/scripts/xdg-open.in 2009-11-08 10:13:52.807798529 -0600
4 @@ -72,6 +72,17 @@
5 fi
8 +open_rox()
9 +{
10 + rox "$1"
12 + if [ $? -eq 0 ]; then
13 + exit_success
14 + else
15 + exit_failure_operation_failed
16 + fi
19 open_generic()
21 if mimeopen -v 2>/dev/null 1>&2; then
22 @@ -163,6 +174,10 @@
23 open_xfce "$url"
26 + rox)
27 + open_rox "$url"
28 + ;;
30 generic)
31 open_generic "$url"
33 diff -aur xdg-utils/scripts/xdg-utils-common.in xdg-utils.new/scripts/xdg-utils-common.in
34 --- xdg-utils/scripts/xdg-utils-common.in 2009-11-07 23:15:29.022492880 -0600
35 +++ xdg-utils.new/scripts/xdg-utils-common.in 2009-11-08 10:20:16.207739088 -0600
36 @@ -196,6 +196,7 @@
37 if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde${KDE_SESSION_VERSION};
38 elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
39 elif xprop -root _DT_SAVE_MODE | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce;
40 + elif [ -e $HOME/.config/rox.sourceforge.net ]; then DE=rox;
44 Only in xdg-utils.new/scripts: xdg-utils-common.in~