tAdd scripts to package someday - sailfish-safe - Sailfish frontend for safe(1)
(HTM) git clone git://git.z3bra.org/sailfish-safe.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 15df9b1bf2c31b5b3420b8a09d2b5a7380914249
(DIR) parent cdd12c07bb71cf68b909b3b1c583589efc7bf2fb
(HTM) Author: Willy Goiffon <contact@z3bra.org>
Date: Tue, 13 Jul 2021 18:48:41 +0200
Add scripts to package someday
Diffstat:
A scripts/askpass | 5 +++++
A scripts/harbour-safe.sh | 8 ++++++++
2 files changed, 13 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/scripts/askpass b/scripts/askpass
t@@ -0,0 +1,5 @@
+#!/bin/sh
+
+stty -echo
+read p
+echo "$p"
(DIR) diff --git a/scripts/harbour-safe.sh b/scripts/harbour-safe.sh
t@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ -z "${XDG_RUNTIME_DIR}" ]; then
+ export XDG_RUNTIME_DIR=$HOME/.local/share/safe-store
+fi
+
+eval `safe-agent -t 900 -f "${XDG_RUNTIME_DIR}/agent.sock"`
+exec harbour-safe