Menu

#151 Bad Paths in .mgedrc (win32)

closed-fixed
5
2008-05-07
2008-01-08
David Loman
No

When using the Create/Update menu option in the Windows Port of MGED, it creates the following two variables with bad paths:

# Determines where to look for MGED's html documentation
set mged_default(html_dir) /Program Files/BRL-CAD/doc/html/manuals/mged

# Specifies the web browser
set mged_default(web_browser) /Program Files/Internet Explorer/iexplore.exe

The windows port should be fixed to generate the lines to look like this:

# Determines where to look for MGED's html documentation
set mged_default(html_dir) \/Program\ Files\/BRL\-CAD\/doc\/html\/manuals\/mged

# Specifies the web browser
set mged_default(web_browser) \/Program\ Files\/Internet\ Explorer\/iexplore\.exe

Discussion

  • Sean Morrison

    Sean Morrison - 2008-01-08

    Logged In: YES
    user_id=785737
    Originator: NO

    Does it work if you simply quote the path? Windows (and Tcl in particular) isn't supposed to care on the C side, but the space unquoted on "Program Files" is a glaring problem regardless of the platform.

     
  • David Loman

    David Loman - 2008-01-09

    Logged In: YES
    user_id=1506912
    Originator: YES

    Sean,
    After putting the paths in quotes, smacking my forehead and saying DOH, I can verify that quotes do indeed work.

    -Dave L

     
  • Sean Morrison

    Sean Morrison - 2008-05-07

    Logged In: YES
    user_id=785737
    Originator: NO

    Elena's patch did indeed fix this, which Bob indirectly ended up applying and is now in the latest release of BRL-CAD.

     
  • Sean Morrison

    Sean Morrison - 2008-05-07
    • labels: --> Geometry Editing
    • milestone: --> other bug / workaround
    • assigned_to: nobody --> bob1961
    • status: open --> closed-fixed
     

Log in to post a comment.