Not loading configuration when started with fiename on command line

Bugs

Modérateur : xcasadmin

XcasEngGuy
Messages : 146
Inscription : mer. janv. 13, 2010 3:20 pm

Re: Not loading configuration when started with fiename on command line

Message par XcasEngGuy » sam. mars 09, 2024 10:21 pm

Sorry to keep asking, but have you been able to reproduce this? If not I will have to determine what's wrong with my installation. I have cygwin installed as well as xcas.

XcasEngGuy
Messages : 146
Inscription : mer. janv. 13, 2010 3:20 pm

Re: Not loading configuration when started with fiename on command line

Message par XcasEngGuy » sam. mars 09, 2024 10:46 pm

parisse a écrit :
mer. janv. 24, 2024 1:35 pm
Sorry for the late reply.
The bandeau/scientific keyboard configuration is encoded in xcas.rc after the fontsize and geometry of the window by bits 0 and 1 of an integer, e.g. 1 here:
widget_size(18,40,90,900,550,1
0 or 1 means scientific keyboard OFF/ON
+
0 or 2 means Bandeau OFF/ON
I just discovered that using config=$XCAS_ROOT/xcas.rc on the command line and setting the value to 1 or 3 turns on the scientific keyboard, but neither one turns on the Bandeau.

I used the config parameter that you added because I can't find the default xcas.rc and save config doesn't seem to work with the default xcas.rc.

Again, all this is with filenames on the command line in runxcas.en.

Matt

parisse
Messages : 5742
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Not loading configuration when started with fiename on command line

Message par parisse » jeu. mars 14, 2024 2:23 pm

I checked running xcas (not from commandline) with xcas.rc in c:\xcaswin, setting to 3 will turn on Bandeau and Scientific keyboard, how is it for you?
If that does only partially work from commandline, then it's probably not using the right config file.

XcasEngGuy
Messages : 146
Inscription : mer. janv. 13, 2010 3:20 pm

Re: Not loading configuration when started with fiename on command line

Message par XcasEngGuy » ven. mars 15, 2024 12:44 am

With "C:\Programs_OS\xcas64\xcas.rc":

widget_size([0,17,40,10],1197,140,903,833,2,0,0,[88,255,60,255,216,255,56,255,56,255,49],"'/cygdrive/c/Program Files (x86)/Google/Chrome/Application/chrome.exe'",0,0,"","","A4",60);
cas_setup(0,0,1,1,0,[1e-12,1e-15],12,[4,100,0,25],0,1,0,1),xcas_mode(0);
xyztrange([-10.0,10.0,-10.0,10.0,-10.0,10.0,-10.0,10.0,-10.0,10.0,-1.4,1.1,1,0.0,1.0,3]);
autosimplify('nop')

and "C:\Programs_OS\xcas64\runxcas.en"

#! bash
export LANG=en
export XCAS_ROOT='/cygdrive/C/Programs_OS/xcas64'
# export XCAS_HOME='/cygdrive/p'
# export XCAS_AUTOSAVEFOLDER='/cygdrive/p'
export XCAS_LOCALE="$XCAS_ROOT/locale/"
export XCAS_HELP="$XCAS_ROOT/aide_cas"
xcas.exe
# config=$XCAS_ROOT/xcas.rc
# eq_funcs.xws "$@"
#
#

Bandeau displays

with "C:\Programs_OS\xcas64\runxcas.en":

#! bash
export LANG=en
export XCAS_ROOT='/cygdrive/C/Programs_OS/xcas64'
# export XCAS_HOME='/cygdrive/p'
# export XCAS_AUTOSAVEFOLDER='/cygdrive/p'
export XCAS_LOCALE="$XCAS_ROOT/locale/"
export XCAS_HELP="$XCAS_ROOT/aide_cas"
xcas.exe config=$XCAS_ROOT/xcas.rc
# eq_funcs.xws "$@"
#
#

and the same "C:\Programs_OS\xcas64\xcas.rc", Bandeau does not display. However, if I show or hide Bandeau in cfg menu and save config the change in value shows up immediately in "C:\Programs_OS\xcas64\xcas.rc" in both cases. It appears xcas is using the xcas.rc in $XCAS_ROOT in both cases. The Keyboard does display if the value is 1 or 3. Also if I use:

xcas.exe eq_funcs.xws "$@"
#
# config=$XCAS_ROOT/xcas.rc

or:

xcas.exe config=$XCAS_ROOT/xcas.rc eq_funcs.xws "$@"
#
#

the Bandeau also does not display when the value is either 2 or 3. The Keyboard does display if the value is 1 or 3.

Thanks for your attention.

Matt

Répondre