tremoved the all-in-one creation - gtomb - tomb gtk frontend in zenity
HTML git clone git://parazyd.org/gtomb.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 376db66b7a901f2d5ae128164301f2cac5f98b74
DIR parent f36a1e450270a16bbd75734d2b99060a24986ab4
HTML Author: parazyd <parazyd@dyne.org>
Date: Sun, 13 Dec 2015 20:45:19 +0100
removed the all-in-one creation
Diffstat:
M gtomb | 99 -------------------------------
1 file changed, 0 insertions(+), 99 deletions(-)
---
DIR diff --git a/gtomb b/gtomb
t@@ -234,105 +234,6 @@ function _main {
}
# }}}
-# {{{ create - All in one: Tomb creation, key forge and tomb lock.
-function _create {
- tombname=`zenity \
- --title="Choose where to dig your tomb" \
- --window-icon="monmort.png" \
- --file-selection \
- --filename="secret.tomb" \
- --save`
-
- case $? in
- 0)
- tombsize=`zenity \
- --title="Tomb Creation" \
- --window-icon="monmort.png" \
- --entry \
- --text="A tomb must be min. 10MiB in size." \
- --entry-text=10`
-
- case $? in
- 0)
- $TOMBPATH dig -s $tombsize $tombname | \
- zenity \
- --title="Digging tomb" \
- --window-icon="monmort.png" \
- --text="Please wait while your tomb is being dug." \
- --progress \
- --auto-close \
- --pulsate
-
- zenity \
- --title="Done digging" \
- --window-icon="monmort.png" \
- --info \
- --text="Your tomb has been dug. Now we will forge a key."
-
- keyfile=`zenity \
- --title="Choose where to forge your key" \
- --window-icon="monmort.png" \
- --file-selection \
- --filename="secret.tomb.key" \
- --save`
-
- case $? in
- 0)
- $TOMBPATH forge $keyfile | \
- zenity \
- --title="Forging key" \
- --window-icon="monmort.png" \
- --text="Please wait while your key is being forged.\n\
- You can move your mouse around and use your computer to speed up the process." \
- --progress \
- --auto-close \
- --pulsate
-
- zenity \
- --title="Done forging" \
- --window-icon="monmort.png" \
- --info \
- --text="Your key is now forged. Time to lock the tomb."
-
- # Ask for sudo password via pinentry and remove pass from memory afterwards.
- sudoassword=$(ask_password "Insert sudo password for user $USER")
- echo -e "$sudoassword\n" | sudo -S $TOMBPATH lock $tombname -k $keyfile | \
- sudoassword=$(ask_password "Insert sudo password for user $USER")
- zenity \
- --title="Locking tomb" \
- --window-icon="monmort.png" \
- --text="Please wait while your new tomb is being formatted." \
- --progress \
- --auto-close \
- --pulsate
-
- _clean # Clean sensitive stuff from memory
-
- zenity \
- --title="Succes" \
- --window-icon="monmort.png" \
- --info \
- --text="Tomb locked!"
-
- _main
- ;;
- 1)
- _main
- ;;
- esac
- ;;
- 1)
- exec _main
- ;;
- esac
- ;;
- 1)
- exec _main
- ;;
- esac
-}
-# }}}
-
# {{{ dig - Dig a new tomb
function _dig {
tombname=`zenity \