Where can I find the config file for my application?

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3085
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Where can I find the config file for my application?

Post by ONEEYEMAN » Mon Aug 06, 2018 2:59 am

Hi,
When I use wxConfigBase, on Windows everything will be stored into the registry, on *nix it will be stored in ~/.<my_app_name>.
Where this class stores the settings on OSX? Is it inside the bundle? In the ~? What is the file name?

Thank you.

P.S.: Using wx3.1.1 release under all of them.

Thank you.

User avatar
doublemax
Moderator
Moderator
Posts: 13179
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Where can I find the config file for my application?

Post by doublemax » Mon Aug 06, 2018 6:04 am

Check some of the paths listed under wxStandardPaths, e.g. "/Library/Preferences", "~/Library/Preferences", "~/Documents/appinfo" etc.
Use the source, Luke!

PB
Part Of The Furniture
Part Of The Furniture
Posts: 1881
Joined: Sun Jan 03, 2010 5:45 pm

Re: Where can I find the config file for my application?

Post by PB » Mon Aug 06, 2018 6:53 am

According to the information below, wxFileConfig creates its files in ~/Library/Preferences
https://groups.google.com/d/msg/wx-dev/ ... djfRNtAgAJ
http://trac.wxwidgets.org/ticket/17725

User avatar
shawnhcorey
Knows some wx things
Knows some wx things
Posts: 34
Joined: Mon Nov 19, 2012 3:29 pm
Location: The Great White North

Re: Where can I find the config file for my application?

Post by shawnhcorey » Mon Aug 06, 2018 11:51 am

On *nix, it should be stored in the directory

Code: Select all

~/.config/<my_app_name>/

Post Reply