The gmenu2x.conf file is now located on the user-specific directory.

If inexistant, it will be written as soon as the configuration is changed.
This commit is contained in:
Ayla
2011-03-30 16:15:09 +02:00
parent 83d6b954fb
commit cf42f7d192
+2 -2
View File
@@ -568,7 +568,7 @@ void GMenu2X::viewLog() {
}
void GMenu2X::readConfig() {
string conffile = path+"gmenu2x.conf";
string conffile = getHome() + "/gmenu2x.conf";
if (fileExists(conffile)) {
ifstream inf(conffile.c_str(), ios_base::in);
if (inf.is_open()) {
@@ -604,7 +604,7 @@ void GMenu2X::readConfig() {
void GMenu2X::writeConfig() {
ledOn();
string conffile = path+"gmenu2x.conf";
string conffile = getHome() + "/gmenu2x.conf";
ofstream inf(conffile.c_str());
if (inf.is_open()) {
ConfStrHash::iterator endS = confStr.end();