Skip to content

Commit 8978b41

Browse files
authored
Merge pull request #5 from janrueth/fix-space
Support spaces in device name
2 parents b778c80 + 715d835 commit 8978b41

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ project (es2button)
33
set(CMAKE_INSTALL_PREFIX "/usr")
44
set(CMAKE_PROJECT_VERSION_MAJOR 0)
55
set(CMAKE_PROJECT_VERSION_MINOR 2)
6-
set(CMAKE_PROJECT_VERSION_PATCH 0)
6+
set(CMAKE_PROJECT_VERSION_PATCH 1)
77
set(CMAKE_PROJECT_HOMEPAGE_URL "https://github.com/janrueth/es2button")
88

99
# download epson source

example/example-epsonscan2.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ fi
1515
echo "Starting scan"
1616
if [[ ${ES2_CARD_SCANNING} = "No" ]]; then
1717
echo "Scanning A4 paper"
18-
epsonscan2 -s ${ES2_DEV} $(dirname $0)/a4_preset.SF2
18+
epsonscan2 -s "${ES2_DEV}" $(dirname $0)/a4_preset.SF2
1919
else
2020
echo "Scanning plastic card"
21-
epsonscan2 -s ${ES2_DEV} $(dirname $0)/card_preset.SF2
21+
epsonscan2 -s "${ES2_DEV}" $(dirname $0)/card_preset.SF2
2222
fi
2323

2424
echo "Finished scan"

example/example-scanimage.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ then
2929
# protocol=esci2 only supported by sane
3030
# transport=usb only supported
3131
# model_from_pid
32-
scanimage -d epsonscan2:${ES2_DEV}:esci2:usb:${model}:${pid_as_dec} --duplex=yes --resolution=400 --scan-area A4 --deskew=yes -b "img%d.jpeg"
32+
scanimage -d "epsonscan2:${ES2_DEV}:esci2:usb:${model}:${pid_as_dec}" --duplex=yes --resolution=400 --scan-area A4 --deskew=yes -b "img%d.jpeg"
3333
else
3434
echo "Scanning plastic card"
35-
scanimage -d epsonscan2:${ES2_DEV}:esci2:usb:${model}:${pid_as_dec} --duplex=yes --resolution=400 --scan-area PlasticCard --deskew=yes -b "card%d.jpeg"
35+
scanimage -d "epsonscan2:${ES2_DEV}:esci2:usb:${model}:${pid_as_dec}" --duplex=yes --resolution=400 --scan-area PlasticCard --deskew=yes -b "card%d.jpeg"
3636
fi
3737

3838
echo "Finished scan"

resources/udev-es2button.rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ACTION!="add|bind", GOTO="es2button_add_rules_end"
1010
LABEL="es2button_add_rules_begin"
1111

1212
# these are set by the epsonscan2 rules, we just match on everything it matches
13-
ENV{epsonscan2_driver}=="esci*", ENV{libsane_matched}=="yes", PROGRAM="/bin/systemd-escape %s{product}:%s{busnum}:%s{devnum}", RUN+="/usr/bin/systemctl start es2button@%c.service"
13+
ENV{epsonscan2_driver}=="esci*", ENV{libsane_matched}=="yes", PROGRAM="/bin/systemd-escape '%s{product}:%s{busnum}:%s{devnum}'", RUN+="/usr/bin/systemctl start es2button@%c.service"
1414

1515
LABEL="es2button_add_rules_end"
1616

0 commit comments

Comments
 (0)