Index: scripts/xdg-utils-common.in |
=================================================================== |
--- scripts/xdg-utils-common.in (revision 79914) |
+++ scripts/xdg-utils-common.in (working copy) |
@@ -200,7 +200,7 @@ |
fi |
if [ x"$DE" = x"" ]; then |
- # if all else fails, fallback to checking $DESKTOP_SESSION |
+ # fallback to checking $DESKTOP_SESSION |
case "$DESKTOP_SESSION" in |
LXDE) |
DE=lxde; |
@@ -211,6 +211,15 @@ |
esac |
fi |
+ if [ x"$DE" = x"" ]; then |
+ # fallback to uname output for other platforms |
+ case "$(uname 2>/dev/null)" in |
+ Darwin) |
+ DE=darwin; |
+ ;; |
+ esac |
+ fi |
+ |
if [ x"$DE" = x"gnome" ]; then |
# gnome-default-applications-properties is only available in GNOME 2.x |
# but not in GNOME 3.x |