Merge pull request #373 from dcommisso/fix_manpage

Fix manpage
This commit is contained in:
Jaromil 2020-02-05 19:56:14 +01:00 committed by GitHub
commit 4ec85ea3ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,7 +225,7 @@ commands, or text files retrieved from \fIengraved\fR QR codes. If the
stdin (blocking).
.B
.IP "-n"
Skip processing of post-hooks and bind-hooks if found inside the tomb.
Skip processing of exec-hooks and bind-hooks if found inside the tomb.
See the \fIHOOKS\fR section in this manual for more information.
.B
.IP "-p"
@ -329,7 +329,7 @@ Switch to this TTY terminal when dropping privileges.
Hooks are special files that can be placed inside the tomb and trigger
actions when it is opened and closed; there are two kinds of such
files: \fIbind-hooks\fR and \fIpost-hooks\fR can be placed in the
files: \fIbind-hooks\fR and \fIexec-hooks\fR can be placed in the
base root of the tomb.
.B
@ -523,13 +523,14 @@ keeping all its profile data inside it:
.EX
tomb open FOX.tomb -k FOX.tomb.key
cat <<EOF > /media/FOX.tomb/post-hooks
cat <<EOF > /media/FOX.tomb/exec-hooks
#!/bin/sh
if [ "$1" = "open" ]; then
firefox -no-remote -profile "$2"/firefox-pro &
fi
EOF
chmod +x /media/FOX.tomb/post-hooks
chmod +x /media/FOX.tomb/exec-hooks
mkdir /media/FOX.tomb/firefox-pro
.EE
.IP \(bu
@ -540,7 +541,7 @@ Script a tomb to archive Pictures using Shotwell, launching it on open:
cat <<EOF > /media/Pictures.tomb/bind-hooks
Pictures Pictures
EOF
cat <<EOF > /media/Pictures.tomb/post-hooks
cat <<EOF > /media/Pictures.tomb/exec-hooks
#!/bin/sh
if [ "$1" = "open" ]; then
which shotwell > /dev/null
@ -549,7 +550,7 @@ if [ "$1" = "open" ]; then
fi
fi
EOF
chmod +x /media/Pictures.tomb/post-hooks
chmod +x /media/Pictures.tomb/exec-hooks
.EE
.SH BUGS