Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2 Arguments for filetype associations not double-quoted

closed-fixed
nobody
None
5
2009-01-17
2008-04-16
Anonymous
No

When a filetype association is created for an installed program, the filename (path) argument for the file to be opened is not enclosed in double-quotes in the "open" shell command in the registry. This can cause program-breaking problems if the filename or path of the file or files to be opened contains spaces, which is often the case in modern Windows systems.

This problem is very easily solved:

In the GenerateComponent method of the MainFrame class (in MainFrame.cs), change this line (near the end of the method, at line #1375 in the currently distributed version of the 1.06 BETA source code):

verb_node.SetAttribute("Argument", "%1");

to this one (add the double quotes):

verb_node.SetAttribute("Argument", "\"%1\"");

Otherwise, very good, clean, useful program, Mr. Aase. I thank you for your hard work.

Discussion

  • Jarle Aase
    Jarle Aase
    2009-01-17

    • status: open --> closed-fixed