Author Topic: Two glest.ini files on Linux  (Read 1472 times)

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Two glest.ini files on Linux
« on: 17 April 2010, 09:25:00 »
I recently got my Ubuntu up and running again, and I was rather perplexed at not being able to change the resolution in the glest.ini file.  I changed it, saved it, and ran Glest, only to find it running at its default resolution.  As it turns out, there's another glest.ini hidden in a different directory and the one that isn't hidden is (apparently) good for nothing except maybe a backup.  Anybody know what's up with that?  I installed it using the Ubuntu Software Center on Ubuntu 9.10.

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Two glest.ini files on Linux
« Reply #1 on: 17 April 2010, 12:57:47 »
If you use a package manager the .ini file that does stuff is in "/home/John/.config/glest". :thumbup:
Egypt Remastered!

Proof: Owner of glest@mail.com

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Two glest.ini files on Linux
« Reply #2 on: 19 April 2010, 19:51:57 »
Yeah, I figured that out.  I just thought it was a little weird/frustrating that the one that was hidden was the only one that actually does anything, and the one that isn't hidden is... I don't know... a decoy of some kind?  The only thing I can think of is maybe it's a backup in case you screw up your real *.ini, but then wouldn't their positions be switched?

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Two glest.ini files on Linux
« Reply #3 on: 21 April 2010, 13:40:10 »
The one that is visible is some kind of skeleton. Its part of the installation and you should never edit it. If a user fist starts glest, this skeleton glest.ini is copied to his homedirectory to .glest and other things are setup there too. Its done this way because every user on your system can have its own settings for glest.
But its not only glest, most linux programs do it this way. If you use linux for a while you will see lots of hidden "."-files in your directory.
In Windows these kind of things/setups are typically done in the registry or in the userdir too.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

 

anything