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: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Where can I find the config file for my application?

Post by ONEEYEMAN »

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: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

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

Post by doublemax »

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: 4193
Joined: Sun Jan 03, 2010 5:45 pm

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

Post by PB »

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: 41
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 »

On *nix, it should be stored in the directory

Code: Select all

~/.config/<my_app_name>/
WARNING: Highly caffeinated ☕. Approach with caution 🚧.
Post Reply