Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37744651
en ru br
Репозитории ALT
S:1.1.3-alt12
5.1: 1.0.2-alt6.M51.1
4.1: 1.0.2-alt1
4.0: 1.0.2-alt0.M40.1
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: xdg-utils

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: xdg-email-detect-thunderbird-mate.patch
Скачать


--- a/scripts/xdg-email.in
+++ b/scripts/xdg-email.in
@@ -171,6 +171,38 @@ open_gnome3()
     fi
 }
 
+open_mate()
+{
+    local client
+    local desktop
+    if gio help mime 2>/dev/null 1>&2; then
+        DEBUG 1 "Running gio mime \"x-scheme-handler/mailto\""
+        desktop=`gio mime "x-scheme-handler/mailto" | grep -e 'x-scheme-handler\/mailto' | head -n 1 |  sed -e 's|.*x-scheme-handler\/mailto.*\:[[:space:]]*\(.*\.desktop\)$|\1|'`
+        client=`desktop_file_to_binary "$desktop"`
+        echo $client | grep -E 'thunderbird|icedove' > /dev/null 2>&1
+        if [ $? -eq 0 ] ; then
+            run_thunderbird "$client" "$1"
+        fi
+    fi
+
+    if gio help open 2>/dev/null 1>&2; then
+        DEBUG 1 "Running gio open \"$1\""
+        gio open "$1"
+    elif gvfs-open --help 2>/dev/null 1>&2; then
+        DEBUG 1 "Running gvfs-open \"$1\""
+        gvfs-open "$1"
+    else
+        DEBUG 1 "Running gnome-open \"$1\""
+        gnome-open "$1"
+    fi
+
+    if [ $? -eq 0 ]; then
+        exit_success
+    else
+        exit_failure_operation_failed
+    fi
+}
+
 open_gnome()
 {
     local client
@@ -481,10 +513,14 @@ case "$DE" in
     open_gnome "${mailto}"
     ;;
 
-    gnome3|cinnamon|lxde|mate)
+    gnome3|cinnamon|lxde)
     open_gnome3 "${mailto}"
     ;;
 
+    mate)
+    open_mate "${mailto}"
+    ;;
+
     xfce)
     open_xfce "${mailto}"
     ;;
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin