@LyleHaze
Sorry to have been rather confusing in my explanations
To make things more clear (i hope)
the archive contains
-Gui4Cli interpreter executable
-gui4 the Gui4Cli launcher
-MYapp.gc written in Gui4Cli
-MYapp.gc.info having the gui4 launcher as tool
-some more files & readme
Please note that as well gui4 in the archive as Gui4Cli may be different from what i do run normally (say the latest experimental Gui4 or Gui4Cli)
This archive is supposed to be dearchived in some drawer and to run out of the box from there. Intended users: users having never installed Gui4Cli 'properly- with all docs & tutorials & more stuff, that can't be bothered asking to install Gui4Cli first . I hope at least some of the apps i'll release that way will attract some interest.
The user is supposed to double click on the icon. Gui4 then looks if there is not alllready a Gui4Cli running
- if yes tells it to load MYapp.gc
- if not, gui4 searches in the path for Gui4Cli or for Guis:Gui4Cli ( i may have to verify where gui4 looks first) and if it finds the interpreter , it lanches Gui4Cli with MYApp.gc as argument.
My problem is not how to get things right for the user, but to make it easy for me to switch from my full install to what the user is supposed to get and which i have in a testdrawer.
A user that has the full Gui4Cli installl has to be treated differently. He is not interested in testing the 'out of the box 'solution. The readme will just point out what exactly he has to do., or i could detect the guis: assign signalling he has a full install allready in a install script.
I would like to make the described switch as easy & short as possible on my computer. Indeed i intend to upload other applications in the same way, for users not interested in programming Gui4Cli, or looking at the apps in the full archive.
@all
Thanks for all the info giving me a better understanding of the path & assign command
I guess at present i am interested
- in discussing if the LoadWB NEWPATH is a possible solution yet (or might be in the future)
... What is preventing the WB to quit or close even after unchecking all programs in WBStartup ?
... i remenber Dopus Magellan allowed you to close the WB : is there e difference between this closing and the WB Workbench/quit menu item ?
... Gui4Cli also has a WORKBENCH CLOSE|OPEN command i forgot about = it does not work
Code: Select all
case WORKBENCH : // OPEN|CLOSE
if (marg[0].num == K_CLOSE) CloseWorkBench();
else if (marg[0].num == K_OPEN) OpenWorkBench();
else myerror(gf->name, ERR_UNKEY, x->progline, NULL);
break;case WORKBENCH : // OPEN|CLOSE
if (marg[0].num == K_CLOSE) CloseWorkBench();
else if (marg[0].num == K_OPEN) OpenWorkBench();
else myerror(gf->name, ERR_UNKEY, x->progline, NULL);
break;
- in discussing if adding or removing a path from the WB/Workbench/execute menu coudl in the future take care of modifying the WB path inherited by all shells
@nbache
12.Amiga OS 4:> assign guis: remove
ASSIGN: Les options ADD, REMOVE, PATH et DEFER nécessitent l'utilisation de TARGET.
12.Amiga OS 4:> assign guis: guis: remove
12.Amiga OS 4:>
I recall (?) using the first line too
If that is correct , I don't know when it stopped working.