mirror of https://github.com/djcb/mu.git
* mu-config.c: expand --maildir arguments
This commit is contained in:
parent
7efb577279
commit
9c7d990422
|
@ -123,8 +123,16 @@ config_options_group_mu (MuConfig *opts)
|
|||
static void
|
||||
set_group_index_defaults (MuConfig * opts)
|
||||
{
|
||||
char *exp;
|
||||
|
||||
if (!opts->maildir)
|
||||
opts->maildir = mu_util_guess_maildir ();
|
||||
|
||||
exp = mu_util_dir_expand(opts->maildir);
|
||||
if (exp) {
|
||||
g_free(opts->maildir);
|
||||
opts->maildir = exp;
|
||||
}
|
||||
}
|
||||
|
||||
static GOptionGroup*
|
||||
|
|
Loading…
Reference in New Issue