[Gambas-user] Private settings file question
KKing
kicking177 at gmail.com
Sat Dec 5 12:26:05 CET 2020
So I want to have a private application configuration file in a set
location of my choosing (i.e. not in ~/.config/Gambas)
A simplified test of what I attempted is below but does not appear to work.
There is no conf file to start with (I want to have a UI to request the
settings to save)
When I run the below, there are no errors, but there is no conf file is
created either?
> Dim confFile As Settings
> Dim strConfFile as String
> Dim strImageFilesPath as String
> Dim varTest01 as Variant
> strConfFile = "/home/user01/TestSettings.conf"
> confFile = New Settings(mCore.gstrConfFile)
> strImageFilesPath = confFile["UserPreferences/ImageFilesPath", Null]
> If IsNull(strImageFilesPath) Then
> strImageFilesPath = "/media/external01/Images"
> varTest01 = confFile["UserPreferences/ImageFilesPath",
> strImageFilesPath]
> Endif
> confFile.Save
More information about the User
mailing list