From ac13adaa2893ae8fc1442d00886c3fa0e82ac6ef Mon Sep 17 00:00:00 2001 From: Domenico Commisso <16167691+dcommisso@users.noreply.github.com> Date: Tue, 4 Feb 2020 15:07:08 +0100 Subject: [PATCH 1/2] Update exec-hooks name in linux manpage --- doc/tomb.1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/tomb.1 b/doc/tomb.1 index 66e66fd..c85f83e 100644 --- a/doc/tomb.1 +++ b/doc/tomb.1 @@ -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,13 @@ keeping all its profile data inside it: .EX tomb open FOX.tomb -k FOX.tomb.key - cat < /media/FOX.tomb/post-hooks + cat < /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 .EE .IP \(bu @@ -540,7 +540,7 @@ Script a tomb to archive Pictures using Shotwell, launching it on open: cat < /media/Pictures.tomb/bind-hooks Pictures Pictures EOF - cat < /media/Pictures.tomb/post-hooks + cat < /media/Pictures.tomb/exec-hooks #!/bin/sh if [ "$1" = "open" ]; then which shotwell > /dev/null @@ -549,7 +549,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 From 7da034c1465c5310184e0aabcfb8f5f557ab3ae9 Mon Sep 17 00:00:00 2001 From: Domenico Commisso <16167691+dcommisso@users.noreply.github.com> Date: Tue, 4 Feb 2020 15:27:25 +0100 Subject: [PATCH 2/2] Fix Firefox example in linux manpage to avoid Firefox error at startup --- doc/tomb.1 | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/tomb.1 b/doc/tomb.1 index c85f83e..aac6e2c 100644 --- a/doc/tomb.1 +++ b/doc/tomb.1 @@ -530,6 +530,7 @@ if [ "$1" = "open" ]; then fi EOF chmod +x /media/FOX.tomb/exec-hooks + mkdir /media/FOX.tomb/firefox-pro .EE .IP \(bu