#444 windows shortcut "Start in" is ineffective

closed-fixed
Miguel
5
2009-01-26
2009-01-24
No

In the wiki (http://wiki.jmol.org:81/index.php/Support/Windows#Creating_shortcuts_to_Jmol_application) the way to have the default locationfor "file > open" is ineffective. Whatever the directory, it always use "My Documents".

Discussion

  • Bob Hanson

    Bob Hanson - 2009-01-25

    Under what version of Windows? -- Please check again; this works for me.

    1) create a Windows Shortcut for Jmol.jar
    2) right-click, under Properties, modify the "start in" property

    However, the wiki might suggest that the standard startup for Jmol be something like:

    java -Xmx512m -jar "C:\Program Files\Jmol\Jmol.jar"

    and explain that that gives more memory and more options. That's explained elsewhere in the wiki, but indicating it here might be nice, as it also allows starting with a script. So, for example, one could use:

    java -Xmx512m -jar "C:\Program Files\Jmol\Jmol.jar" -g500x500 -j "cd c:/temp;background white"

    (The -j option is new -- for Jmol 11.7, not 11.6. For Jmol 11.6 you have to put the script commands in a file and then refer to that file using the -s option.)

    Bob

     
  • Professeur Mephisto

    windows XP sp3 (french version) in a VirtualBox (RAM is 256 Mo). Java is 6.0.110.3. Jmol is 11.6.11.

    I tried with a shortcut pointing to jmol.bat (I nead to do some other operations before launching Jmol) and with the command-line java -Xmx512m -jar "C:\Program Files\Jmol\Jmol.jar"

    Each times, the default location is "My Documents" :-(

     
  • Bob Hanson

    Bob Hanson - 2009-01-26

    and that's with the property tab "start in" pointing to somewhere else? -- then I would use Jmol 11.7 and the -j option as shown below, with "cd [whatever directory]" as the script. You can do that in your .bat file. This is in 11.7, not 11.6.

     
  • Angel Herraez

    Angel Herraez - 2009-01-26

    Well, this used to work, in my system, when I wrote that info in the Wiki. Now it does not.

    I've started to think it might be related to version of Java, but no: It still works for older Jmol versions with my current JVM 1.6.0_11.

    So, something HAS CHANGED in Jmol itself, and I have tracked it down to between 11.6.RC14 and 11.6.RC16.

     
  • Angel Herraez

    Angel Herraez - 2009-01-26

    Testing as Bob suggested
    java -Xmx512m -jar "C:\Program Files\Jmol\Jmol.jar" -j "cd c:/temp"
    in 11.7.22 is not working for me; he "open" dialog takes me by default to "My documents"

     
  • Angel Herraez

    Angel Herraez - 2009-01-26

    Well, the "cd c:/temp" method works in the sense that if I then type
    load a.mol
    Jmol looks for that file in the "c:/temp" folder. So it has the expected effect, but does not affect the default folder in the File > Open menu (as I was assuming it would do).

     
  • Bob Hanson

    Bob Hanson - 2009-01-26
    • status: open --> closed-fixed
     
  • Bob Hanson

    Bob Hanson - 2009-01-26

    OH, ok. I get it... the File menu... Fixed for Jmol 11.7.23 and Jmol 11.6.15

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks