fix open attachment with whitespace bug
authorPaul Mangan <paul@claws-mail.org>
Thu, 23 Aug 2001 11:25:16 +0000 (11:25 +0000)
committerPaul Mangan <paul@claws-mail.org>
Thu, 23 Aug 2001 11:25:16 +0000 (11:25 +0000)
ChangeLog.claws
src/mimeview.c

index cc5eabc9dd1719e7b2cd4ba797761edb912334b9..b6e899458070bbf6aa95aa90cd940fdbeded73dd 100644 (file)
@@ -5,6 +5,10 @@
 
        * sync with sylpheed 0.5.3cvs5
 
+       * src/mimeview.c
+               double quote '%s' in 'gedit %s' to fix bug when
+               opening attachment with spaces in the name
+
 2001-08-22 [alte]
        * src/Makefile.am, src/compose.[ch], src/defs.h, src/mainwindow.c,
          src/prefs_templates.[ch], src/template.[ch], src/template_select.[ch]
index fc5e252ba270aaf39ead45216ca85456d5b145eb..b12254193d8c2151d5d7ee463c4ca9289ecddada 100644 (file)
@@ -777,7 +777,7 @@ static void mimeview_open_with(MimeView *mimeview)
                        (_("Open with"),
                         _("Enter the command line to open file:\n"
                           "(`%s' will be replaced with file name)"),
-                        "gedit %s");
+                        "gedit \"%s\"");
                if (cmd) {
                        mimeview_view_file(filename, partinfo, cmd);
                        g_free(cmd);