[geary] Support file path and URI attachment paths: Closes bgo 726770



commit 343f3ba01e0df7648a369ac45d7bd1ca41305b53
Author: Jim Nelson <jim yorba org>
Date:   Wed Apr 16 14:40:06 2014 -0700

    Support file path and URI attachment paths: Closes bgo 726770
    
    Prior fix to support xdg-email attachment paths broke support for
    nautilus-sendto and LibreOffice.  This remedies for all situations.

 src/client/composer/composer-window.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/client/composer/composer-window.vala b/src/client/composer/composer-window.vala
index 7351e2f..85efee8 100644
--- a/src/client/composer/composer-window.vala
+++ b/src/client/composer/composer-window.vala
@@ -501,9 +501,9 @@ public class ComposerWindow : Gtk.Window {
                     Geary.Collection.get_first(headers.get("body"))));
             
             foreach (string attachment in headers.get("attach"))
-                add_attachment(File.new_for_path(attachment));
+                add_attachment(File.new_for_commandline_arg(attachment));
             foreach (string attachment in headers.get("attachment"))
-                add_attachment(File.new_for_path(attachment));
+                add_attachment(File.new_for_commandline_arg(attachment));
         }
     }
     


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]