Skip to content

Commit 8887208

Browse files
committed
v2.6.0
1 parent 3780c50 commit 8887208

File tree

4 files changed

+37
-42
lines changed

4 files changed

+37
-42
lines changed

jacksum-file-browser-integration/jacksum-file-browser-integration.sh

+25-36
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
#
33
# Jacksum File Browser Integration for Unix and GNU/Linux Operating Systems
4-
# Copyright (c) 2006-2023 Dipl.-Inf. (FH) Johann N. Loefflmann
4+
# Copyright (c) 2006-2024 Dipl.-Inf. (FH) Johann N. Loefflmann
55
#
66
# This program is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License as published by
@@ -34,13 +34,15 @@
3434
#
3535
# Dolphin 21.12.3 (KDE Framework 5.92) on Kubuntu 22.04
3636
#
37+
# elementary Files 6.5.2 on elementary OS 7.1
3738
# elementary Files 6.2.1 on elementary OS 7
3839
#
3940
# GNOME Files (known as Gnome Nautilus) 42.6 on Ubuntu Linux 22.04.3
4041
# GNOME Files (known as Gnome Nautilus) 42.2 on Ubuntu Linux 22.04.1
4142
# GNOME Files (known as Gnome Nautilus) 42.1.1 on Ubuntu Linux 22.04
4243
# GNOME Files (known as Gnome Nautilus) 3.26.4 on Ubuntu Linux 18.04
4344
#
45+
# Nemo 6.0.2 on Linux Mint 21.3
4446
# Nemo 5.2.4 on Ubuntu Linux 22.04.1
4547
# Nemo 5.2.4 on Ubuntu Linux 22.04
4648
#
@@ -98,16 +100,16 @@
98100
# on read-only-filesystems (e.g. on life CDs), crashes of kate, or non-supported
99101
# servicemenus for KDE
100102

101-
VERSION="2.5.0"
103+
VERSION="2.6.0"
102104
NAME="jacksum"
103105
JACKSUM_VERSION="3.7.0"
104-
HASHGARTEN_VERSION="0.14.0"
106+
HASHGARTEN_VERSION="0.16.0"
105107
PROGNAME="Jacksum/HashGarten File Browser Integration"
106108
JACKSUM_JAR="$(pwd)/jacksum-${JACKSUM_VERSION}.jar"
107109
HASHGARTEN_JAR="$(pwd)/HashGarten-${HASHGARTEN_VERSION}.jar"
108110
ALGOS_DIRECT_SUGGESTION="cksum crc32 ed2k haval_256_5 md5 rmd160 sha1 sha256 sha3-256 sumbsd sumsysv whirlpool"
109111
ALGORITHMS=""
110-
COMMANDS="cmd_calc;1)_Calc_hash_values cmd_check;2)_Check_data_integrity cmd_cust;3)_Customized_output cmd_edit;4)_Edit_script cmd_help;5)_Help"
112+
COMMANDS="cmd_calc;1)_Calc_hash_values cmd_check;2)_Check_data_integrity cmd_cust;3)_Customized_output cmd_edit;4)_Edit_script"
111113

112114
KDE_PROGNAME="Dolphin, Konqueror, or Krusader"
113115
GNOME_PROGNAME="GNOME Files (Nautilus)"
@@ -147,16 +149,16 @@ print_menu() {
147149
# $1 "install" or "uninstall"
148150
# -------------------------------------------------------------------------
149151
printf "Menu:\n"
150-
printf " 1 - %-9s in %s for %s %s\n" "${ACTION^}" "$KDE_PROGNAME" "$USERS" "$KDE_DISABLED"
151-
printf " 2 - %-9s in %s for %s %s\n" "${ACTION^}" "$GNOME_PROGNAME" "$USERS" "$GNOME_DISABLED"
152-
printf " 3 - %-9s in %s for %s %s\n" "${ACTION^}" "$ROX_PROGNAME" "$USERS" "$ROX_DISABLED"
153-
printf " 4 - %-9s in %s for %s %s\n" "${ACTION^}" "$THUNAR_PROGNAME" "$USERS" "$THUNAR_DISABLED"
154-
printf " 5 - %-9s in %s for %s %s\n" "${ACTION^}" "$XFE_PROGNAME" "$USERS" "$XFE_DISABLED"
155-
printf " 6 - %-9s in %s for %s %s\n" "${ACTION^}" "$NEMO_PROGNAME" "$USERS" "$NEMO_DISABLED"
156-
printf " 7 - %-9s in %s for %s %s\n" "${ACTION^}" "$CAJA_PROGNAME" "$USERS" "$CAJA_DISABLED"
157-
printf " 8 - %-9s in %s for %s %s\n" "${ACTION^}" "$ELEMENTARY_PROGNAME" "$USERS" "$ELEMENTARY_DISABLED"
158-
printf " 9 - %-9s in %s for %s %s\n" "${ACTION^}" "$SPACEFM_PROGNAME" "$USERS" "$SPACEFM_DISABLED"
159-
printf " 10 - %-9s in %s for %s %s\n" "${ACTION^}" "$ZZZFM_PROGNAME" "$USERS" "$ZZZFM_DISABLED"
152+
printf " 1 - %-9s in %s for %s %s\n" "${ACTION}" "$KDE_PROGNAME" "$USERS" "$KDE_DISABLED"
153+
printf " 2 - %-9s in %s for %s %s\n" "${ACTION}" "$GNOME_PROGNAME" "$USERS" "$GNOME_DISABLED"
154+
printf " 3 - %-9s in %s for %s %s\n" "${ACTION}" "$ROX_PROGNAME" "$USERS" "$ROX_DISABLED"
155+
printf " 4 - %-9s in %s for %s %s\n" "${ACTION}" "$THUNAR_PROGNAME" "$USERS" "$THUNAR_DISABLED"
156+
printf " 5 - %-9s in %s for %s %s\n" "${ACTION}" "$XFE_PROGNAME" "$USERS" "$XFE_DISABLED"
157+
printf " 6 - %-9s in %s for %s %s\n" "${ACTION}" "$NEMO_PROGNAME" "$USERS" "$NEMO_DISABLED"
158+
printf " 7 - %-9s in %s for %s %s\n" "${ACTION}" "$CAJA_PROGNAME" "$USERS" "$CAJA_DISABLED"
159+
printf " 8 - %-9s in %s for %s %s\n" "${ACTION}" "$ELEMENTARY_PROGNAME" "$USERS" "$ELEMENTARY_DISABLED"
160+
printf " 9 - %-9s in %s for %s %s\n" "${ACTION}" "$SPACEFM_PROGNAME" "$USERS" "$SPACEFM_DISABLED"
161+
printf " 10 - %-9s in %s for %s %s\n" "${ACTION}" "$ZZZFM_PROGNAME" "$USERS" "$ZZZFM_DISABLED"
160162
printf "\n"
161163
if [ "$ACTION" = "install" ]; then
162164
printf " u - Show the uninstall menu\n"
@@ -1217,7 +1219,7 @@ install_script_sh() {
12171219
#!/bin/bash
12181220
#
12191221
# Jacksum File Browser Integration Script, https://jacksum.net
1220-
# Copyright (c) 2006-2023 Johann N. Loefflmann, https://johann.loefflmann.net
1222+
# Copyright (c) 2006-2024 Johann N. Loefflmann, https://johann.loefflmann.net
12211223
# Code has been released under the conditions of the GPLv3+.
12221224
#
12231225
@@ -1272,34 +1274,16 @@ case $ALGO in
12721274
12731275
"cmd_calc")
12741276
"${JAVA}" -jar "${HASHGARTEN_JAR}" --header -O relative -U ${ERROR_LOG} --file-list-format list --file-list ${FILE_LIST} --path-relative-to-entry 1 --verbose default,summary
1275-
rm relative > /dev/null 2>&1
1276-
if [ $? -eq 0 ]
1277-
then
1278-
# Generate an output that contains both stdout and stderr in a file for the viewer
1279-
# CHECK_FILE contains the output file name that the user has been specified at the GUI
1280-
1281-
CHECK_FILE=$(grep gui.output $HOME/.HashGarten.properties)
1282-
# We need to strip the key called gui.output= and undo any escapes done by Java''s properties API
1283-
CHECK_FILE=${CHECK_FILE#*=}
1284-
1285-
cat ${CHECK_FILE} ${ERROR_LOG} > ${OUTPUT}
1286-
viewer "${OUTPUT}"
1287-
fi
12881277
;;
12891278
12901279
"cmd_check")
12911280
if [ ! -f relative ]; then
12921281
touch relative
12931282
fi
12941283
"${JAVA}" -jar "${HASHGARTEN_JAR}" --header -c relative -O ${OUTPUT} -U ${OUTPUT} --file-list-format list --file-list ${FILE_LIST} --path-relative-to-entry 1 --verbose default,summary
1295-
rm relative > /dev/null 2>&1
1296-
if [ $? -eq 0 ]; then
1297-
viewer "${OUTPUT}"
1298-
fi
12991284
;;
13001285
13011286
"cmd_cust")
1302-
cat /dev/null > "${OUTPUT}"
13031287
ALGOS="md5+sha1+ripemd160+tiger+\
13041288
sha256+sha512/256+sha3-256+shake128+ascon-hash+sm3+streebog256+kupyna-256+lsh-256-256+blake3+k12+keccak256+\
13051289
sha512+sha3-512+shake256+streebog512+kupyna-512+lsh-512-512+blake2b-512+keccak512+m14+skein-512-512+whirlpool"
@@ -1437,7 +1421,11 @@ print_params() {
14371421
check_bin "Editor" "$EDIT"
14381422
EDIT="$BIN"
14391423

1440-
printf " [direct accessible algorithms]: %s\n\n" "$ALGORITHMS"
1424+
if [ -z $ALGORITHMS ]; then
1425+
printf " [direct accessible algorithms]: %s\n\n" "n/a"
1426+
else
1427+
printf " [direct accessible algorithms]: %s\n\n" "$ALGORITHMS"
1428+
fi
14411429
}
14421430

14431431
# -------------------------------------------------------------------------
@@ -1467,6 +1455,7 @@ modify_params() {
14671455
# -------------------------------------------------------------------------
14681456
printf "\nA JDK or JRE is required. If you use a headless JDK/JRE, you cannot use HashGarten which is a GUI for Jacksum.\n"
14691457
printf "You could go to https://adoptium.net for example to obtain a full JDK/JRE.\n"
1458+
printf "On Debian based derivates you could install by 'sudo apt install default-jdk'\n"
14701459

14711460
enter_java
14721461

@@ -1666,14 +1655,14 @@ uninstall_generic() {
16661655
# -------------------------------------------------------------------------
16671656
init_editor() {
16681657
# -------------------------------------------------------------------------
1669-
find_app gedit kate defaulttexteditor xfwrite pluma io.elementary.code geany
1658+
find_app gedit kate defaulttexteditor xfwrite pluma io.elementary.code geany xed pluma
16701659
EDIT="$APP"
16711660
}
16721661

16731662
# -------------------------------------------------------------------------
16741663
init_viewer() {
16751664
# -------------------------------------------------------------------------
1676-
find_app zenity gedit kate defaulttexteditor xfwrite pluma io.elementary.code geany
1665+
find_app zenity gedit kate defaulttexteditor xfwrite pluma io.elementary.code geany xed pluma
16771666
VIEWER="$APP"
16781667
}
16791668

jacksum-file-browser-integration/readme.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Description
22
-----------
33
Jacksum File Browser Integration
44
for GNU/Linux and Unix Operating Systems v2.5.0 (Sep 16, 2023)
5-
Copyright (C) 2006-2023 Dipl.-Inf. (FH) Johann N. Loefflmann
5+
Copyright (C) 2006-2024 Dipl.-Inf. (FH) Johann N. Loefflmann
66

77
This program is free software; you can redistribute it and/or modify
88
it under the terms of the GNU General Public License as published by
@@ -41,7 +41,7 @@ Requirements
4141
https://github.com/alibaba/dragonwell8
4242
https://www.oracle.com/java
4343

44-
4) jacksum-3.7.0.jar, and HashGarten-0.14.0.jar, and flatlaf-3.2.jar
44+
4) jacksum-3.7.0.jar, and HashGarten-0.16.0.jar, and flatlaf-3.4.1.jar
4545

4646

4747
Extract the script

jacksum-file-browser-integration/readme_de.txt

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Beschreibung
22
------------
33
Jacksum File Browser Integration 2.5.0
44
fuer GNU/Linux und Unix Betriebssysteme (16.09.2023)
5-
Copyright (C) 2006-2023 Dipl.-Inf. (FH) Johann N. Loefflmann
5+
Copyright (C) 2006-2024 Dipl.-Inf. (FH) Johann N. Loefflmann
66

77
This program is free software; you can redistribute it and/or modify
88
it under the terms of the GNU General Public License as published by
@@ -13,7 +13,7 @@ Das Jacksum File Browser Integration Script installiert die primaere Funktion
1313
von Jacksum (Berechnen von Pruefsummen, CRCs und Hashes) in Ihren bevorzugten
1414
Dateibrowser unter GNU/Linux und Unix Betriebssystemen.
1515

16-
Um alle Funktionen von Jacksum benutzen zu koennen, lassen Sie Jacksum auf
16+
Um alle Funktionen von Jacksum benutzen zu k�nnen, lassen Sie Jacksum auf
1717
der Kommandozeile laufen.
1818

1919

@@ -42,7 +42,7 @@ Voraussetzungen
4242
https://github.com/alibaba/dragonwell8
4343
https://www.oracle.com/java
4444

45-
4) jacksum-3.7.0.jar, and HashGarten-0.14.0.jar, und flatlaf-3.2.jar
45+
4) jacksum-3.7.0.jar, and HashGarten-0.16.0.jar, und flatlaf-3.4.1.jar
4646

4747

4848
Entpacken des Scripts
@@ -55,7 +55,7 @@ Starten des Scripts
5555
-------------------
5656
./jacksum-file-browser-integration.sh
5757

58-
Sie k�nnen das Script so oft aufrufen wie sie wollen.
58+
Sie k�nnen das Script so oft aufrufen wie sie wollen.
5959

6060

6161
Getestete Umgebungen
@@ -70,3 +70,4 @@ funktionieren.
7070
Fehler, Wuensche, Supportanfragen
7171
---------------------------------
7272
Besuchen Sie https://github.com/jonelo/jacksum-fbi-linux/issues
73+

jacksum-file-browser-integration/release_notes.txt

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Release Notes
22
-------------
3+
2.6.0, Apr 3, 2024
4+
- added folder to the .tar.bz2 again
5+
- added xed, and pluma for editor selection
6+
- bundled HashGarten 0.16.0
7+
38
2.5.0, Sep 16, 2023
49
- added ascon-hash to the customized output menu item
510
- added integration support for the file manager zzzFM

0 commit comments

Comments
 (0)