Skip to content

Commit

Permalink
[config] Default to ask mode. JB#45869
Browse files Browse the repository at this point in the history
Having developer is optional and requires configuration files to be
installed on the device. Thus defaulting to use developer mode in
absence of any configuration files makes little sense, and also causes
need for otherwise unnecessary configuration files in normal user
devices.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed May 14, 2019
1 parent 7967d5e commit 9673330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usb_moded-config.c
Expand Up @@ -815,7 +815,7 @@ static void config_load_static_config(GKeyFile *ini)
log_debug("no configuration ini-files found");

/* Seed with default values */
g_key_file_set_string(ini, MODE_SETTING_ENTRY, MODE_SETTING_KEY, MODE_DEVELOPER);
g_key_file_set_string(ini, MODE_SETTING_ENTRY, MODE_SETTING_KEY, MODE_ASK);

/* Override with content from config files */
for( size_t i = 0; i < gb.gl_pathc; ++i ) {
Expand Down

0 comments on commit 9673330

Please sign in to comment.