[Cuis-dev] Cuis directories
Juan Vuletich
juan at cuis.st
Thu Jul 23 13:19:52 PDT 2026
Hi Hilaire,
#userBaseDirectory is set in the #userBaseDirectory method. It defaults
to the current directory in the OS shell that starts Cuis, but if it
happens to be the same as #cuisBaseDirectory, then it is set as a
sibling of it. When I did this, I just tried it to be comfortable for
Cuis devs by default (their changes and stuff are created close enough
to the Cuis they are running so they are easy to find), and flexible to
app builders.
This is consistent with what you see.
HTH,
On 2026-07-23 6:24 AM, Hilaire Fernandes via Cuis-dev wrote:
> Hi Juan,
>
> Le 22/07/2026 à 17:03, Juan Vuletich a écrit :
>> Hope this helps.
>
> I observed a different behavior for the userBaseDirectory
>
> To clarify, my bundles application has this structure:
>
> hilaire at PCHome:/tmp$ tree -A -L 2 DyboApp/
> DyboApp/
> ├── DyboAppMulti.sh
> ├── DyboApp.sh
> ├── License.txt
> ├── Logs
> │ └── transcript.txt
> ├── README
> ├── Resources
> │ ├── dkm
> │ ├── graphics
> │ ├── image
> │ ├── myExports
> │ ├── myPDF
> │ ├── refData
> │ ├── scripts
> │ └── userData
> ├── UserChanges
> │ ├── dybo-dau.user.changes
> │ └── dybo.user.changes
> ├── UserPrefs.txt
> └── VM
> └── Linux-x86_64
>
> As you can see the UserPrefs.txt is saved in DyboApp; so
> #userBaseDirectory is set there, I did not, so Cuis does.
>
> I observed different behavior compare to what you described. To me the
> #userBaseDirectory is set at the location from where is started my
> application.
>
> For example:
>
> cd /tmp
> ./DyboApp/DyboApp.sh
>
> #userBaseDirectory => /tmp
>
> The former UserPrefs.txt *is not found*
>
>
> cd /tmp/DyboApp
> ./DyboApp.sh
>
> #userBaseDirectory => /tmp
>
> The former UserPrefs.txt *is found*
>
>
> cd /home/hilaire/Documents
> /tmp/DyboApp/DyboApp.sh
>
> #userBaseDirectory => /home/hilaire/Documents
>
>
> Of course I can set #userBaseDirectory to whatever value I want, for
> example ~/.config/dyboapp/ But how is set its default value?
>
> As it will be super useful when building Cuis application, I created a
> new documentation in the DrCuis workbench
> (https://github.com/DrCuis/Workbench/wiki/Cuis-Base-Directories). I
> will edit it all along our discussion. Of course, every one is welcome
> to edit it too.
>
> Thanks
>
> Hilaire
>
> --
> http://mamot.fr/@drgeo
>
--
Juan Vuletich
www.cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260723/e29f851d/attachment.htm>
More information about the Cuis-dev
mailing list