summaryrefslogtreecommitdiffstats
path: root/brscan-key.pl
diff options
context:
space:
mode:
Diffstat (limited to 'brscan-key.pl')
-rw-r--r--brscan-key.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/brscan-key.pl b/brscan-key.pl
index 34f0ba8..154dece 100644
--- a/brscan-key.pl
+++ b/brscan-key.pl
@@ -63,9 +63,11 @@ sub run {
# possible values: FILE, IMAGE, OCR, EMAIL
given ($fields{FUNC}) {
when (/IMAGE/) {
+ chdir("$BRscan::Config::work_dir");
system("scan-multi");
}
when (/FILE/) {
+ chdir("$BRscan::Config::work_dir");
system("scan-multi --pdf");
}
}
@@ -126,8 +128,6 @@ sub run {
package main;
our $debug = $BRscan::Config::debug;
-chdir("$BRscan::Config::work_dir");
-
threads->new("BRscan::Listener::run");
threads->new("BRscan::RegWatcher::run");