Commit 6d9bd36f authored by Jan Möbius's avatar Jan Möbius

Changed the path to OpenFlippers config dir to be app store compliant

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11670 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a0c792bf
......@@ -802,15 +802,34 @@ bool initializeSettings() {
//==================================================================================================
// Get the Main config dir in the home directory and possibly create it
//==================================================================================================
configDir_ = QDir::home();
if ( ! configDir_.cd(".OpenFlipper") ) {
std::cerr << "Creating config Dir ~/.OpenFlipper" << std::endl;;
configDir_.mkdir(".OpenFlipper");
#if defined(ARCH_DARWIN)
configDir_ = QDir::home();
if ( ! configDir_.cd("Library") )
configDir_.mkdir("Library");
if ( ! configDir_.cd("Application Support") )
configDir_.mkdir("Application Support");
if ( ! configDir_.cd("OpenFlipper") ) {
configDir_.mkdir("OpenFlipper");
if ( ! configDir_.cd("OpenFlipper") ) {
std::cerr << "Unable to create config dir ~/Library/OpenFlipper" << std::endl;
return false;
}
}
#else
configDir_ = QDir::home();
if ( ! configDir_.cd(".OpenFlipper") ) {
std::cerr << "Unable to create config dir ~/.OpenFlipper" << std::endl;
return false;
std::cerr << "Creating config Dir ~/.OpenFlipper" << std::endl;;
configDir_.mkdir(".OpenFlipper");
if ( ! configDir_.cd(".OpenFlipper") ) {
std::cerr << "Unable to create config dir ~/.OpenFlipper" << std::endl;
return false;
}
}
}
#endif
//==================================================================================================
// Setup settings.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment