changed: #initializeDefaultCommands
authorStefan Vogel <sv@exept.de>
Mon, 04 Apr 2011 13:03:54 +0200
changeset 2904 bb555534881e
parent 2903 f8a9324436cc
child 2905 303bf86fa4bb
changed: #initializeDefaultCommands remove -display from pdf Add "" around filename args
MIMETypes.st
--- a/MIMETypes.st	Thu Mar 24 16:55:44 2011 +0100
+++ b/MIMETypes.st	Mon Apr 04 13:03:54 2011 +0200
@@ -211,8 +211,8 @@
     DefaultCommandPerMIMEPerOS at:#unix  put:(unixCommands := Dictionary new).
     DefaultCommandPerMIMEPerOS at:#win32 put:(win32Commands := Dictionary new).
 
-    unixCommands at:'application/x-tar-compressed' put:'gunzip < %1 | tar tvf -'.
-    unixCommands at:'application/pdf'              put:'acroread -display %2 %1'.
+    unixCommands at:'application/x-tar-compressed' put:'gunzip < "%1" | tar tvf -'.
+    unixCommands at:'application/pdf'              put:'acroread "%1"'.
 
     OperatingSystem isMSWINDOWSlike ifFalse:[ |cmd|
         cmd := #( firefox konqueror mozilla netscape opera )
@@ -230,7 +230,7 @@
     DefaultPrintCommandPerMIMEPerOS at:#win32 put:(win32PrintCommands := Dictionary new).
 
     "/ if you have a good (intelligent) spooler ;-)
-    unixPrintCommands at:'application/pdf'         put:'lpr %1'.
+    unixPrintCommands at:'application/pdf'         put:'lpr "%1"'.
     "/ if not, you may need more...
     "/ unixPrintCommands at:'application/pdf'         put:'pdfToPS %1 | lpr'.
 
@@ -1310,11 +1310,11 @@
 !MIMETypes class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview2/MIMETypes.st,v 1.111 2011-02-14 16:24:42 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/MIMETypes.st,v 1.112 2011-04-04 11:03:54 stefan Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libview2/MIMETypes.st,v 1.111 2011-02-14 16:24:42 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/MIMETypes.st,v 1.112 2011-04-04 11:03:54 stefan Exp $'
 ! !
 
 MIMETypes initialize!