mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-26 02:15:19 +02:00
Fix the filename for the user-specified input conf file.
This commit is contained in:
parent
4935baedec
commit
a0b9fc026b
@ -427,12 +427,12 @@ GMenu2X::GMenu2X()
|
|||||||
|
|
||||||
/* If a user-specified input.conf file exists, we load it;
|
/* If a user-specified input.conf file exists, we load it;
|
||||||
* otherwise, we load the default one. */
|
* otherwise, we load the default one. */
|
||||||
const char *input_file = (getHome() + "/input.conf").c_str();
|
string input_file = getHome() + "/input.conf";
|
||||||
if (fileExists(input_file)) {
|
if (fileExists(input_file.c_str())) {
|
||||||
DEBUG("Loading user-specific input.conf file: %s.\n", input_file);
|
DEBUG("Loading user-specific input.conf file: %s.\n", input_file.c_str());
|
||||||
} else {
|
} else {
|
||||||
input_file = GMENU2X_SYSTEM_DIR "/input.conf";
|
input_file = GMENU2X_SYSTEM_DIR "/input.conf";
|
||||||
DEBUG("Loading system input.conf file: %s.\n", input_file);
|
DEBUG("Loading system input.conf file: %s.\n", input_file.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
input.init(input_file);
|
input.init(input_file);
|
||||||
|
Loading…
Reference in New Issue
Block a user