|
| 1 | +#!/usr/bin/python3 |
| 2 | + |
| 3 | +DOMAIN = "nemo-extensions" |
| 4 | +PATH = "/usr/share/locale" |
| 5 | + |
| 6 | +import os |
| 7 | +import gettext |
| 8 | +from mintcommon import additionalfiles |
| 9 | + |
| 10 | +os.environ['LANGUAGE'] = "en_US.UTF-8" |
| 11 | +gettext.install(DOMAIN, PATH) |
| 12 | + |
| 13 | +prefix = "[Nemo Action]\n" |
| 14 | + |
| 15 | +suffix = """Active=true |
| 16 | +Exec=nemo-seahorse-tool --sign %U |
| 17 | +Icon-Name=xsi-certificate-symbolic |
| 18 | +Selection=notnone |
| 19 | +Extensions=any; |
| 20 | +""" |
| 21 | + |
| 22 | +additionalfiles.generate(DOMAIN, PATH, "nemo-seahorse/data/nemo-seahorse-sign.nemo_action", prefix, _("Sign"), _("Sign the selected files"), suffix) |
| 23 | + |
| 24 | +suffix = """Active=true |
| 25 | +Exec=nemo-seahorse-tool --encrypt %U |
| 26 | +Icon-Name=xsi-certificate-symbolic |
| 27 | +Selection=notnone |
| 28 | +Extensions=any; |
| 29 | +""" |
| 30 | + |
| 31 | +additionalfiles.generate(DOMAIN, PATH, "nemo-seahorse/data/nemo-seahorse-encrypt.nemo_action", prefix, _("Encrypt..."), _("Encrypt the selected files"), suffix) |
| 32 | + |
| 33 | +suffix = """Active=true |
| 34 | +Exec=nemo-seahorse-tool --decrypt %U |
| 35 | +Icon-Name=xsi-certificate-symbolic |
| 36 | +Selection=notnone |
| 37 | +Extensions=gpg;pgp;asc; |
| 38 | +""" |
| 39 | + |
| 40 | +additionalfiles.generate(DOMAIN, PATH, "nemo-seahorse/data/nemo-seahorse-decrypt.nemo_action", prefix, _("Decrypt"), _("Decrypt the selected files"), suffix) |
| 41 | + |
| 42 | +suffix = """Active=true |
| 43 | +Exec=nemo-seahorse-tool --verify %U |
| 44 | +Icon-Name=xsi-certificate-symbolic |
| 45 | +Selection=notnone |
| 46 | +Extensions=sig;asc; |
| 47 | +""" |
| 48 | + |
| 49 | +additionalfiles.generate(DOMAIN, PATH, "nemo-seahorse/data/nemo-seahorse-verify.nemo_action", prefix, _("Verify Signature"), _("Verify the signature of the selected file"), suffix) |
| 50 | + |
| 51 | +suffix = """Active=true |
| 52 | +Exec=nemo-seahorse-tool --import %U |
| 53 | +Icon-Name=xsi-certificate-symbolic |
| 54 | +Selection=notnone |
| 55 | +Extensions=asc;gpg;pgp; |
| 56 | +""" |
| 57 | + |
| 58 | +additionalfiles.generate(DOMAIN, PATH, "nemo-seahorse/data/nemo-seahorse-import.nemo_action", prefix, _("Import Key"), _("Import the PGP key from the selected file"), suffix) |
0 commit comments