diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-10-30 11:12:53 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-10-30 11:12:53 +0100 |
commit | f7ee8760d8d7eea87cbde9ba68b42bb351090562 (patch) | |
tree | 8097758aee9f87ab4bef542e75f983f4081a5aab /brscan-key.pl | |
parent | 900aa95d4dc4254cf54328c9466b801a38fa540d (diff) | |
download | bin-f7ee8760d8d7eea87cbde9ba68b42bb351090562.tar.gz bin-f7ee8760d8d7eea87cbde9ba68b42bb351090562.tar.xz |
brscan-key.pl: chdir every time we scan something
If the path isn't available when the script starts it would just stay in
the current directory.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'brscan-key.pl')
-rw-r--r-- | brscan-key.pl | 4 |
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"); |