mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-23 00:12:48 +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:
parent
83d6b954fb
commit
cf42f7d192
@ -568,7 +568,7 @@ void GMenu2X::viewLog() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void GMenu2X::readConfig() {
|
void GMenu2X::readConfig() {
|
||||||
string conffile = path+"gmenu2x.conf";
|
string conffile = getHome() + "/gmenu2x.conf";
|
||||||
if (fileExists(conffile)) {
|
if (fileExists(conffile)) {
|
||||||
ifstream inf(conffile.c_str(), ios_base::in);
|
ifstream inf(conffile.c_str(), ios_base::in);
|
||||||
if (inf.is_open()) {
|
if (inf.is_open()) {
|
||||||
@ -604,7 +604,7 @@ void GMenu2X::readConfig() {
|
|||||||
|
|
||||||
void GMenu2X::writeConfig() {
|
void GMenu2X::writeConfig() {
|
||||||
ledOn();
|
ledOn();
|
||||||
string conffile = path+"gmenu2x.conf";
|
string conffile = getHome() + "/gmenu2x.conf";
|
||||||
ofstream inf(conffile.c_str());
|
ofstream inf(conffile.c_str());
|
||||||
if (inf.is_open()) {
|
if (inf.is_open()) {
|
||||||
ConfStrHash::iterator endS = confStr.end();
|
ConfStrHash::iterator endS = confStr.end();
|
||||||
|
Loading…
Reference in New Issue
Block a user