=head1 LIMITATIONS
-Alternate configuration directories are not (yet) supported.
+A running Claws Mail cannot be detected if using the --clawsrc option because
+the directory is not assumed to be a Claws Mail configuration dir. If that is
+the case the --alternate-config-dir option instead.
=head1 AUTHOR
# values of all preferences handled by clawsker
my %HPVALUE = ();
# default config dir and file name
+my $ALTCONFIGDIR = FALSE;
my $CONFIGDIR = $ENV{HOME} . '/.claws-mail/';
my $CONFIGRC = 'clawsrc';
}
sub check_claws_not_running() {
- my $socket = "/tmp/claws-mail-$<";
+ my $socket = ($ALTCONFIGDIR)? "/tmp/": $CONFIGDIR;
+ $socket .= "claws-mail-$<";
-S $socket and die "$xl::s{e_error}$xl::s{e_running}\n";
}
die "$xl::s{e_error}$xl::s{e_notadir}\n"
unless -d $ARGV[$arg];
$CONFIGDIR = $ARGV[$arg];
+ $ALTCONFIGDIR = TRUE;
last;
};
/--clawsrc/ && do {