Settings

Post

Posted
Rating:
#1 (In Topic #339)
Avatar
Guru
cogier is in the usergroup ‘Guru’
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.

Attachment
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Regular
jornmo is in the usergroup ‘Regular’
Changing file location is pie simple:

/comp/gb.settings/settings/_new - Gambas Documentation

Online now: No Back to the top

Post

Posted
Rating:
#3
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’
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).

<IMG src="https://paste.c-net.org/MennihanCoral"> </IMG>

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
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: Yes Back to the top

Post

Posted
Rating:
#4
Avatar
Regular
cage is in the usergroup ‘Regular’
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.  :)
Online now: No Back to the top

Post

Posted
Rating:
#5
Avatar
Regular
cage is in the usergroup ‘Regular’
 cogier thank you very much.  I know now just what I was doing wrong.  I greatly appreciate your help in this matter.
Online now: No Back to the top

Post

Posted
Rating:
#6
Avatar
Regular
Serban is in the usergroup ‘Regular’

jornmo said

Changing file location is pie simple:

/comp/gb.settings/settings/_new - Gambas Documentation
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)
Online now: No Back to the top
1 guest and 0 members have just viewed this.