|
From: Gunter K. <gu...@pe...> - 2020-07-02 21:20:11
|
I am no windows expert. But I seem to remember that either maxima additionally looks at the user or (if there is a user variable oft this name) the system variable named HOME in order to find out where to expect the user files. But I might be wrong and we might be using the variable named HOMEPATH. wxMaxima itself tries to access this directory, too: It looks if there are files there that contain commands you might want to have executed at startup. And it looks for filenames for the autocompetion. In theory any half-way recent wxMaxima should try to avoid accessing any external files before it is informed by maxima where maxima believes its files can be found: All data wxMaxima needs to run is contained in wxMaxima's executable. The only exception is that the help browser insists on wanting to see a real .html file with wxMaxima's help. There once was the possibility of using data URLs instead. But that has been deprecated for security reasons. If the file containing the manual cannot be found wxMaxima directs the browser to the online help, instead. And I remember the code that did read the environment various ables for maxima was partially duplicated in maxima.bat and I think it was src/macsys.lisp. Kind regards, Gunter. On July 2, 2020 8:53:59 PM GMT+02:00, Wolfgang Dautermann <wol...@da...> wrote: >Am 02.07.20 um 16:11 schrieb David Randall: >> I got the wxMaxima-Maxima connection alive by >> 1) going on the work network and restoring the drives (including >> H:\). >> 2) H:\ is now a valid drive >> 3) Maxima works... > >Hi David, >ok. I assume, the issue was, that wxMaxima probably checks for 'unusual' >error output (maybe Gunter Königsmann can tell more...) and because of >the error message, it did not believe, that the connection with Maxima >was correctly established. > >> Is there any way to have the command default location that is used >> to start maxima assume that it is starting from a driver other than >> H:\ (my default drive)? >> [...] >> Maybe something needs to be edited / modified in the maxima.bat batch >> file? > >There are some options: > >(a) According to maxima.bat you can set the variables MAXIMA_USERDIR and >MAXIMA_TEMPDIR before starting Maxima (maybe in a batch file which you >use to start wxMaxima). >Hmm. There should be an easy option to do this, maybe a configuration >option in wxMaxima... > >(b) You can modify maxima.bat and change the lines: > >rem set userdir and tempdir - replace "\" with "/" >if not defined MAXIMA_USERDIR set "MAXIMA_USERDIR=%USERPROFILE:\=/%/maxima" >if not defined MAXIMA_TEMPDIR set "MAXIMA_TEMPDIR=%TEMP:\=/%" > >to some directory, you want, maybe for D:\ (if that exists), or >C:\windows\temp - for that you might replace these lines with > >set "MAXIMA_USERDIR=C:/windows/temp" >set "MAXIMA_TEMPDIR=C:/windows/temp" > >You should set it to a directory, where you have write permissions, >Maxima need to write e.g. Gnuplot files when creating plots, etc. > >Beware that if you change that file, the reasonable default (your >profile directory) will not be used, even if you are at work and the >H:-drive is available. > >(c) Maybe the easiest option: >When you are not connected to the work network, you can connect the H:\ >drive to another drive/directory on the local PC. In an >'explorer'-window use 'Map network drive' and connect the H:-drive letter to >\\localhost\c$ (then the H: drive will be the same as the c: drive) >or >\\localhost\c$\windows\temp >or any other directory on your C: drive (or any other drive...). > >Do not connect it permanently or disconnect the connnection before you >go to work, otherwise you might have problems with your network drive >there - and your IT departement will hate me... ;-) > >Best regards, Wolfgang > > >_______________________________________________ >Maxima-discuss mailing list >Max...@li... >https://lists.sourceforge.net/lists/listinfo/maxima-discuss -- Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet. |