Change Details
src/gmenu2x.cpp |
632 | 632 | } |
633 | 633 | |
634 | 634 | void GMenu2X::readConfig() { |
635 | | string conffile = getHome() + "/gmenu2x.conf"; |
| 635 | string conffile = GMENU2X_SYSTEM_DIR "/gmenu2x.conf"; |
| 636 | readConfig(conffile); |
| 637 | |
| 638 | conffile = getHome() + "/gmenu2x.conf"; |
| 639 | readConfig(conffile); |
| 640 | } |
| 641 | |
| 642 | void GMenu2X::readConfig(string conffile) { |
636 | 643 | if (fileExists(conffile)) { |
637 | 644 | ifstream inf(conffile.c_str(), ios_base::in); |
638 | 645 | if (inf.is_open()) { |
src/gmenu2x.h |
136 | 136 | string ip, defaultgw, lastSelectorDir; |
137 | 137 | int lastSelectorElement; |
138 | 138 | void readConfig(); |
| 139 | void readConfig(string path); |
139 | 140 | void readTmp(); |
140 | 141 | |
141 | 142 | void initServices(); |
Download the corresponding diff file