<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Hilaire,</p>
    <p>#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.</p>
    <p>This is consistent with what you see.</p>
    <p>HTH,</p>
    <div class="moz-cite-prefix">On 2026-07-23 6:24 AM, Hilaire
      Fernandes via Cuis-dev wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:bc8a51dc-5983-4ad5-b435-585fcbd7c951@free.fr">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div class="moz-cite-prefix">Hi Juan, </div>
      <div class="moz-cite-prefix"><br>
      </div>
      <div class="moz-cite-prefix">Le 22/07/2026 à 17:03, Juan Vuletich
        a écrit :<br>
      </div>
      <blockquote type="cite"
        cite="mid:5a1add62-c608-4936-9a51-18ade88fd770@cuis.st">Hope
        this helps.</blockquote>
      <p>I observed a different behavior for the userBaseDirectory</p>
      <p>To clarify, my bundles application has this structure:</p>
      <p><font face="monospace">hilaire@PCHome:/tmp$ tree -A -L 2
          DyboApp/<br>
          DyboApp/<br>
          ├── DyboAppMulti.sh<br>
          ├── DyboApp.sh<br>
          ├── License.txt<br>
          ├── Logs<br>
          │   └── transcript.txt<br>
          ├── README<br>
          ├── Resources<br>
          │   ├── dkm<br>
          │   ├── graphics<br>
          │   ├── image<br>
          │   ├── myExports<br>
          │   ├── myPDF<br>
          │   ├── refData<br>
          │   ├── scripts<br>
          │   └── userData<br>
          ├── UserChanges<br>
          │   ├── dybo-dau.user.changes<br>
          │   └── dybo.user.changes<br>
          ├── UserPrefs.txt<br>
          └── VM<br>
              └── Linux-x86_64<br>
        </font></p>
      <p>As you can see the UserPrefs.txt is saved in DyboApp; so
        #userBaseDirectory is set there, I did not, so Cuis does.</p>
      <p>I observed different behavior compare to what you described. To
        me the #userBaseDirectory is set at the location from where is
        started my application.</p>
      <p>For example:</p>
      <p><font face="monospace">cd /tmp<br>
          ./DyboApp/DyboApp.sh</font></p>
      <p><font face="monospace">#userBaseDirectory => /tmp</font></p>
      <p>The former UserPrefs.txt <b>is not found</b></p>
      <p><br>
      </p>
      <p><font face="monospace">cd /tmp/DyboApp<br>
          ./DyboApp.sh</font></p>
      <p><font face="monospace">#userBaseDirectory => /tmp</font></p>
      <p>The former UserPrefs.txt <b>is found</b></p>
      <p><br>
      </p>
      <p><font face="monospace">cd /home/hilaire/Documents<br>
          /tmp/DyboApp/DyboApp.sh</font></p>
      <p><font face="monospace">#userBaseDirectory =>
          /home/hilaire/Documents</font></p>
      <p><br>
      </p>
      <p>Of course I can set #userBaseDirectory to whatever value I
        want, for example ~/.config/dyboapp/ But how is set its default
        value?</p>
      <p>As it will be super useful when building Cuis application,
        I created a new documentation in the DrCuis workbench (<a
          class="moz-txt-link-freetext"
href="https://github.com/DrCuis/Workbench/wiki/Cuis-Base-Directories"
          moz-do-not-send="true">https://github.com/DrCuis/Workbench/wiki/Cuis-Base-Directories</a>).
        I will edit it all along our discussion. Of course, every one is
        welcome to edit it too.</p>
      <p>Thanks</p>
      <p>Hilaire</p>
      <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://mamot.fr/@drgeo"
      moz-do-not-send="true">http://mamot.fr/@drgeo</a></pre>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis.st">www.cuis.st</a>
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich</pre>
  </body>
</html>