From cf42f7d19277572c9eb47a3ea8a17deea5c283d7 Mon Sep 17 00:00:00 2001 From: Ayla Date: Tue, 29 Mar 2011 12:33:56 +0200 Subject: [PATCH] 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. --- src/gmenu2x.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gmenu2x.cpp b/src/gmenu2x.cpp index e7b7d2f..d5308a2 100644 --- a/src/gmenu2x.cpp +++ b/src/gmenu2x.cpp @@ -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();