Settings

Post your Gambas programming questions here.
Post Reply
User avatar
cogier
Site Admin
Posts: 1118
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Settings

Post by cogier »

Cage asked this question here but I think it's better started as a new topic.
Can you explain exactly how the settings command works. I have search for an answer but what I have found were very vague. I managed to make it work but it's not putting the file where would like it. If you could help out with that I would really be grateful.
1/. Have you seen this page?
2/. Why is it necessary to move the file location? I have looked to do this and it seems it would be better to create your own system (see attached).

Can you better explain what you are trying to do please.

Thanks for the kind words regarding PhotoEXIF.
Settings2.tar.gz
(13.16 KiB) Downloaded 364 times
User avatar
jornmo
Site Admin
Posts: 224
Joined: Wednesday 21st September 2016 1:19pm
Location: Norway

Re: Settings

Post by jornmo »

Changing file location is pie simple:

http://gambaswiki.org/wiki/comp/gb.sett ... tings/_new
User avatar
gbWilly
Posts: 68
Joined: Friday 23rd September 2016 11:41am
Location: Netherlands
Contact:

Re: Settings

Post by gbWilly »

Hi cage,

Using the users .config folder is a standard location for placing configuration files on Linux systems.
This ensures that:
1. every user on the system has a personal configuration file
2. system admins have a standard location to look for in case of trouble shooting a system

Not only Gambas uses the users .config folder but many other applications on Linux as well (see screenshot below).

Image

I consider it good programming practice to stick to the standards used on Linux systems.
It makes life so much easier if we all do.

My 2 cents on the matter
gbWilly
- Dutch translation for Gambas3
- Gambas wiki content contributer


... there is always a Catch if things go wrong!
cage
Posts: 123
Joined: Monday 2nd September 2019 5:47am
Location: Phoenix Arizona

Re: Settings

Post by cage »

gbWilly I am not trying to really move the config file but rather just make it work correctly. When I run my test program then look in the config folder it's not there. So I just needed to find out how to set the path to that folder. It's good to talk to you again, been a long time. :)
cage
Posts: 123
Joined: Monday 2nd September 2019 5:47am
Location: Phoenix Arizona

Re: Settings

Post by cage »

cogier thank you very much. I know now just what I was doing wrong. I greatly appreciate your help in this matter.
User avatar
Serban
Posts: 39
Joined: Saturday 28th March 2020 8:17am
Location: Alexandria
Contact:

Re: Settings

Post by Serban »

jornmo wrote: Wednesday 13th November 2019 4:56pm Changing file location is pie simple:

http://gambaswiki.org/wiki/comp/gb.sett ... tings/_new
Sorry to bother: Have you tested? It does nothing and if you try to write the file, gets you to "Access Violation" or "NULL value error".
I gave up using this component. I found my way out without it, and even better.
The only thing necessary for the triumph of evil is for good men to do nothing.”― Edmund Burke;
It's easy to die for an idea. It is way harder to LIVE for your idea! (Me)
Post Reply