summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-05-20 11:53:57 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-05-20 11:53:57 -0300
commitc52749a15486d05f477fcbf5ef27528be15869cb (patch)
tree190dbc949bcae4019f251e68972aa93e7f69f89e /lib
parentf621aa0bbfb34910136afdea6ed5cd217bdeaff2 (diff)
downloadkeyringer-c52749a15486d05f477fcbf5ef27528be15869cb.tar.gz
keyringer-c52749a15486d05f477fcbf5ef27528be15869cb.tar.bz2
Edit/Open: show just the APPNAME for the user
Diffstat (limited to 'lib')
-rwxr-xr-xlib/keyringer/actions/edit9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/keyringer/actions/edit b/lib/keyringer/actions/edit
index 3ccf977..a5f14d4 100755
--- a/lib/keyringer/actions/edit
+++ b/lib/keyringer/actions/edit
@@ -36,9 +36,12 @@ elif [ "$BASENAME" == "open" ]; then
fi
fi
+# Set APPNAME
+APPNAME="`echo $APP | awk '{ print $1 }'`"
+
# Prompt
-echo "Press any key to open the decrypted data with $APP, Ctrl-C to abort"
-echo "WARNING: please make sure that $APP doesn't leak data to external applications or files"
+echo "Press any key to open the decrypted data with $APPNAME, Ctrl-C to abort"
+echo "WARNING: please make sure that $APPNAME doesn't leak data to external applications or files"
echo "Press ENTER to continue"
read -s key
$APP "$TMPWORK"
@@ -53,7 +56,7 @@ wait
# Thus, we cannot just wipe the file and exit keyringer, as the user might have a buffered copy
# of the unencrypted file in the application, which can lead to information leakage if the user
# saves the file and leaves the editor.
-echo "Press any key when done using the file and you're sure that $APP is closed."
+echo "Press any key when done using the file and you're sure that $APPNAME is closed."
read -s -n 1
# Encrypt again