[Gambas-user] Where to store special files?

Hans Lehmann hans at gambas-buch.de
Thu Oct 11 19:49:08 CEST 2018


Hello,

for a chapter on paths in Gambas in the online book at 
https://www.gambas-buch.de/doku.php I would also like to describe the 
static properties Desktop.ConfigDir, Desktop.DataDir, Desktop.RuntimeDir 
and Desktop.CacheDir of the Desktop class (gb.desktop) and give hints 
for using the base directories behind these properties.

The Gambas documentation and the explanations in 
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html 
are not really helpful if you want to decide with sufficient certainty 
which special files belong in which directory defined with 
Desktop.ConfigDir, Desktop.DataDir, Desktop.RuntimeDir and Desktop.CacheDir.

  * Temporary Files
  * Shell scripts
  * Scripts in other languages
  * Databases
  * DB Views, DB Trigger as SQL File
  * Pictures and picture collections
  * Icon, Favicon
  * Configuration files
  * Data files such as CSV file, XML file, CSS file, HTML file, music
    file, sound file
  * MarkDown file
  * Help file
  * Named Pipe
  * Unix socket
  * Libraries

Where should the above files be stored?

Yours sincerely

Hans


More information about the User mailing list