... | ... |
@@ -495,9 +495,9 @@ function fgfs () { |
495 | 495 |
fi |
496 | 496 |
;; |
497 | 497 |
--map|--lnm) |
498 |
- if ! pgrep -u $USER -fx "python3 ./fgconnect.py" > /dev/null; then |
|
498 |
+ if ! pgrep -u $USER -f "python3 ./fgconnect.py" > /dev/null; then |
|
499 | 499 |
if test -d $FGADDON/Addons/littlenavmap -a -x $fgfs_source/fgconnect/fgconnect.py; then |
500 |
- sh -c "cd $fgfs_source/fgconnect; python3 ./fgconnect.py -s" & |
|
500 |
+ ( cd $fgfs_source/fgconnect; python3 ./fgconnect.py -s )& |
|
501 | 501 |
else |
502 | 502 |
echo "can't find FGconnect or littlenavmap addon" |
503 | 503 |
return 1 |