Skip to content

Commit

Permalink
v0.0.15: add asymmetric gpg de/encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
Yann Büchau committed Jun 15, 2017
1 parent 4aa4bfc commit 994c091
Show file tree
Hide file tree
Showing 9 changed files with 250 additions and 55 deletions.
98 changes: 97 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,8 @@ ac_subst_vars='LTLIBOBJS
LIBOBJS
configure_vars
makefile_include
gpg_agent_bin
pinentry_gtk_2_bin
sha256sum_bin
sha1sum_bin
md5sum_bin
Expand Down Expand Up @@ -681,7 +683,9 @@ msgfmt_bin
msgmerge_bin
md5sum_bin
sha1sum_bin
sha256sum_bin'
sha256sum_bin
pinentry_gtk_2_bin
gpg_agent_bin'


# Initialize some variables set by options.
Expand Down Expand Up @@ -1330,6 +1334,10 @@ Some influential environment variables:
sha1sum_bin path to sha1sum
sha256sum_bin
path to sha256sum
pinentry_gtk_2_bin
path to pinentry-gtk-2
gpg_agent_bin
path to gpg-agent
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
Expand Down Expand Up @@ -2795,6 +2803,94 @@ test -n "$sha256sum_bin" || as_fn_error $? "no sha256sum (program) found" "$LINE
# Extract the first word of "pinentry-gtk-2", so it can be a program name with args.
set dummy pinentry-gtk-2; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_pinentry_gtk_2_bin+:} false; then :
$as_echo_n "(cached) " >&6
else
case $pinentry_gtk_2_bin in
[\\/]* | ?:[\\/]*)
ac_cv_path_pinentry_gtk_2_bin="$pinentry_gtk_2_bin" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_path_pinentry_gtk_2_bin="$as_dir/$ac_word$ac_exec_ext"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
IFS=$as_save_IFS
;;
esac
fi
pinentry_gtk_2_bin=$ac_cv_path_pinentry_gtk_2_bin
if test -n "$pinentry_gtk_2_bin"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pinentry_gtk_2_bin" >&5
$as_echo "$pinentry_gtk_2_bin" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -n "$pinentry_gtk_2_bin" || as_fn_error $? "no pinentry-gtk-2 (graphical password dialog) found" "$LINENO" 5
# Extract the first word of "gpg-agent", so it can be a program name with args.
set dummy gpg-agent; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_gpg_agent_bin+:} false; then :
$as_echo_n "(cached) " >&6
else
case $gpg_agent_bin in
[\\/]* | ?:[\\/]*)
ac_cv_path_gpg_agent_bin="$gpg_agent_bin" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_path_gpg_agent_bin="$as_dir/$ac_word$ac_exec_ext"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
IFS=$as_save_IFS
;;
esac
fi
gpg_agent_bin=$ac_cv_path_gpg_agent_bin
if test -n "$gpg_agent_bin"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpg_agent_bin" >&5
$as_echo "$gpg_agent_bin" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -n "$gpg_agent_bin" || as_fn_error $? "no gpg-agent (gnupg agent) found" "$LINENO" 5
# Check for Python modules
if test -z $PYTHON;
Expand Down
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ REQUIRE_PROG([msgmerge],[msgmerge_bin],[program])
REQUIRE_PROG([md5sum],[md5sum_bin],[program])
REQUIRE_PROG([sha1sum],[sha1sum_bin],[program])
REQUIRE_PROG([sha256sum],[sha256sum_bin],[program])
REQUIRE_PROG([pinentry-gtk-2],[pinentry_gtk_2_bin],[graphical password dialog])
REQUIRE_PROG([gpg-agent],[gpg_agent_bin],[gnupg agent])

# Check for Python modules
AX_PYTHON_MODULE(lxml,fatal,python3)
Expand Down
9 changes: 7 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
thunar-custom-actions (0.0.15) UNRELEASED; urgency=medium
thunar-custom-actions (0.0.15) unstable; urgency=medium

* change /screen to /prepress in PDF file size shrinker
(less aggressive compression)
* allow creating links to directories in link creation action
* add asymmetric gpg en/decryption
* minor drawback: decrypting multiple symetrically encrypted files now
prompts for the password on every file. This was necessary to easily
integrate asymmetrical encryption. Now both can be mixed on decrypting
action.

-- Yann Büchau <[email protected]> Wed, 14 Jun 2017 09:49:50 +0200
-- Yann Büchau <[email protected]> Thu, 15 Jun 2017 11:19:34 +0200

thunar-custom-actions (0.0.14) unstable; urgency=medium

Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Package: thunar-custom-actions
Architecture: all
Depends: ${misc:Depends}, thunar, python3, python3-lxml, make, imagemagick,
zenity, ghostscript, gnupg2, bc, xdg-utils, perl, findutils (>=4.6),
coreutils (>=8.0)
coreutils (>=8.0), pinentry-gtk2, gnupg-agent
Conflicts: thunar-custom-actions
Replaces: thunar-custom-actions
Description: system-wide thunar custom actions
Expand Down
87 changes: 51 additions & 36 deletions locale/de/LC_MESSAGES/thunar-custom-actions.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-14 22:57+0200\n"
"PO-Revision-Date: 2017-06-14 22:59+0200\n"
"POT-Creation-Date: 2017-06-15 11:09+0200\n"
"PO-Revision-Date: 2017-06-15 11:09+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: de\n"
Expand All @@ -18,7 +18,7 @@ msgstr ""
"X-Generator: Poedit 1.8.7.1\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: locale/tmp_only_uca_commands.sh:1
#: locale/tmp_only_uca_commands.sh:1 locale/tmp_only_uca_commands.sh:2
#, sh-format
msgid "Encrypting"
msgstr "Verschlüssele"
Expand All @@ -27,146 +27,161 @@ msgstr "Verschlüssele"
#: locale/tmp_only_uca_commands.sh:3 locale/tmp_only_uca_commands.sh:4
#: locale/tmp_only_uca_commands.sh:5 locale/tmp_only_uca_commands.sh:6
#: locale/tmp_only_uca_commands.sh:7 locale/tmp_only_uca_commands.sh:8
#: locale/tmp_only_uca_commands.sh:11 locale/tmp_only_uca_commands.sh:12
#: locale/tmp_only_uca_commands.sh:13
#: locale/tmp_only_uca_commands.sh:9 locale/tmp_only_uca_commands.sh:12
#: locale/tmp_only_uca_commands.sh:13 locale/tmp_only_uca_commands.sh:14
#, sh-format
msgid "overwrite $base?"
msgstr "$base überschreiben?"

#: locale/tmp_only_uca_commands.sh:1 locale/tmp_only_uca_commands.sh:2
#: locale/tmp_only_uca_commands.sh:3 locale/tmp_only_uca_commands.sh:4
#: locale/tmp_only_uca_commands.sh:5 locale/tmp_only_uca_commands.sh:6
#: locale/tmp_only_uca_commands.sh:7 locale/tmp_only_uca_commands.sh:11
#: locale/tmp_only_uca_commands.sh:7 locale/tmp_only_uca_commands.sh:8
#: locale/tmp_only_uca_commands.sh:12 locale/tmp_only_uca_commands.sh:13
#: locale/tmp_only_uca_commands.sh:14
#, sh-format
msgid "something went wrong copying the file $fileout over to $filefinalout."
msgstr "Etwas ist beim Kopieren der Datei $fileout nach $filefinalout schiefgegangen."

#: locale/tmp_only_uca_commands.sh:2
#, sh-format
msgid "Decrypting"
msgstr "Entschlüssele"
msgid "Public Key"
msgstr "Öffentlicher Schlüssel"

#: locale/tmp_only_uca_commands.sh:2 locale/tmp_only_uca_commands.sh:10
#: locale/tmp_only_uca_commands.sh:11
#, sh-format
msgid "Name"
msgstr "Name"

#: locale/tmp_only_uca_commands.sh:2
#, sh-format
msgid "Wrong Password for $filebase?"
msgstr "Falsches Passwort für $filebase?"
msgid "Email"
msgstr "Email"

#: locale/tmp_only_uca_commands.sh:3
#, sh-format
msgid "Decrypting"
msgstr "Entschlüssele"

#: locale/tmp_only_uca_commands.sh:3
#, sh-format
msgid "Could not decrypt $filebase. Wrong password?"
msgstr "Konnte $filebase nicht entschlüsseln. Falsches Passwort?"

#: locale/tmp_only_uca_commands.sh:4
#, sh-format
msgid "Rotating clockwise"
msgstr "Drehe im Uhrzeigersinn"

#: locale/tmp_only_uca_commands.sh:4
#: locale/tmp_only_uca_commands.sh:5
#, sh-format
msgid "Rotating anti-clockwise"
msgstr "Drehe gegen den Uhrzeigersinn"

#: locale/tmp_only_uca_commands.sh:5
#: locale/tmp_only_uca_commands.sh:6
#, sh-format
msgid "Converting to grayscale"
msgstr "Konvertiere zu Graustufen"

#: locale/tmp_only_uca_commands.sh:6
#: locale/tmp_only_uca_commands.sh:7
#, sh-format
msgid "Filling transparency with $COLOR"
msgstr "Fülle Transparenz mit $COLOR"

#: locale/tmp_only_uca_commands.sh:7
#: locale/tmp_only_uca_commands.sh:8
#, sh-format
msgid "Scale to what percentage?"
msgstr "Auf wie viel Prozent der Originalgröße skalieren?"

#: locale/tmp_only_uca_commands.sh:7
#: locale/tmp_only_uca_commands.sh:8
#, sh-format
msgid "Scale to $SCALE percent"
msgstr "Skaliere auf $SCALE%"

#: locale/tmp_only_uca_commands.sh:8
#: locale/tmp_only_uca_commands.sh:9
#, sh-format
msgid "Select link location"
msgstr "Ort der Verknüpfung auswählen"

#: locale/tmp_only_uca_commands.sh:8
#: locale/tmp_only_uca_commands.sh:9
#, sh-format
msgid "The link name has to differ from the target name."
msgstr "Der Name des Links muss von dem zu verlinkenden Ziel abweichen."

#: locale/tmp_only_uca_commands.sh:8
#: locale/tmp_only_uca_commands.sh:9
#, sh-format
msgid "Could not create link"
msgstr "Konnte den Link nicht erstellen"

#: locale/tmp_only_uca_commands.sh:9
#: locale/tmp_only_uca_commands.sh:10
#, sh-format
msgid "Determining file sizes"
msgstr "Ermittle Dateigrößen"

#: locale/tmp_only_uca_commands.sh:9
#: locale/tmp_only_uca_commands.sh:10
#, sh-format
msgid "Size"
msgstr "Größe"

#: locale/tmp_only_uca_commands.sh:9 locale/tmp_only_uca_commands.sh:10
#, sh-format
msgid "Name"
msgstr "Name"

#: locale/tmp_only_uca_commands.sh:9
#: locale/tmp_only_uca_commands.sh:10
#, sh-format
msgid "Big elements"
msgstr "Große Elemente"

#: locale/tmp_only_uca_commands.sh:9
#: locale/tmp_only_uca_commands.sh:10
#, sh-format
msgid "Elements sorted by size"
msgstr "Elemente nach Größe sortiert"

#: locale/tmp_only_uca_commands.sh:9 locale/tmp_only_uca_commands.sh:10
#: locale/tmp_only_uca_commands.sh:10 locale/tmp_only_uca_commands.sh:11
#, sh-format
msgid "Double-click to open."
msgstr "Doppelklick zum öffnen."

#: locale/tmp_only_uca_commands.sh:10
#: locale/tmp_only_uca_commands.sh:11
#, sh-format
msgid "Determining checksums"
msgstr "Berechne Prüfsummen"

#: locale/tmp_only_uca_commands.sh:10
#: locale/tmp_only_uca_commands.sh:11
#, sh-format
msgid "MD5"
msgstr "MD5"

#: locale/tmp_only_uca_commands.sh:10
#: locale/tmp_only_uca_commands.sh:11
#, sh-format
msgid "SHA1"
msgstr "SHA1"

#: locale/tmp_only_uca_commands.sh:10
#: locale/tmp_only_uca_commands.sh:11
#, sh-format
msgid "SHA256"
msgstr "SHA256"

#: locale/tmp_only_uca_commands.sh:10
#: locale/tmp_only_uca_commands.sh:11
#, sh-format
msgid "Checksums"
msgstr "Prüfsummen"

#: locale/tmp_only_uca_commands.sh:11
#: locale/tmp_only_uca_commands.sh:12
#, sh-format
msgid "Converting to PDF"
msgstr "Konvertiere zu PDF"

#: locale/tmp_only_uca_commands.sh:12
#: locale/tmp_only_uca_commands.sh:13
#, sh-format
msgid "Concatenating PDFs"
msgstr "Füge PDFs zusammen"

#: locale/tmp_only_uca_commands.sh:13
#: locale/tmp_only_uca_commands.sh:14
#, sh-format
msgid "Optimizing PDF"
msgstr "Optimiere PDF"

#~ msgid "Wrong Password for $filebase?"
#~ msgstr "Falsches Passwort für $filebase?"

#~ msgid "size"
#~ msgstr "Größe"

Expand Down
Loading

0 comments on commit 994c091

Please sign in to comment.