1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-12-27 10:36:27 +02:00

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-29 12:33:56 +02:00
parent 83d6b954fb
commit cf42f7d192

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();