We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 686892d commit 4ef7c2fCopy full SHA for 4ef7c2f
AppRun
@@ -20,8 +20,20 @@ export PCSCLITE_CONFIG_DIR="${APPDIR}/etc/reader.conf.d"
20
PCSCD_RUN_DIR="/tmp/pcscd/run"
21
rm -rf "${PCSCD_RUN_DIR}"
22
mkdir -p "${PCSCD_RUN_DIR}"
23
+
24
+cleanup_pcscd() {
25
+ if [ -n "$PCSCD_PID" ] && kill -0 "$PCSCD_PID" 2>/dev/null; then
26
+ echo "Killing pcscd process $PCSCD_PID"
27
+ kill "$PCSCD_PID" 2>/dev/null
28
+ wait "$PCSCD_PID" 2>/dev/null
29
+ fi
30
+}
31
32
+trap cleanup_pcscd EXIT TERM INT
33
34
echo "starting pcscd with ${APPDIR}/usr/bin/pcscd --foreground --auto-exit &"
35
"${APPDIR}/usr/bin/pcscd" --foreground --auto-exit &
36
+PCSCD_PID=$!
37
38
DEFAULT_LANG=en_US.UTF-8
39
if [[ "$LANG" == "C.UTF-8" ]]
0 commit comments