From da86dd7d0560bf488af98025a01056e6610bb6a6 Mon Sep 17 00:00:00 2001 From: Kam Woods Date: Wed, 16 Jul 2025 00:01:51 -0400 Subject: [PATCH] Added menu and desktop entries for JHOVE GUI and CLI --- bitcurator/VERSION | 2 +- bitcurator/env/usr/local/bin/run-jhovecli.sh | 19 ++++++++++++ .../usr/share/icons/bitcurator/jhovelogo.svg | 31 +++++++++++++++++++ .../python-packages/importlib-metadata.sls | 0 bitcurator/repos/adoptium.sls | 0 bitcurator/theme/menu-config/jhovecli.desktop | 12 +++++++ bitcurator/theme/menu-config/jhovegui.desktop | 17 ++++++++++ bitcurator/tools/jhove.sls | 0 8 files changed, 80 insertions(+), 1 deletion(-) create mode 100755 bitcurator/env/usr/local/bin/run-jhovecli.sh create mode 100644 bitcurator/env/usr/share/icons/bitcurator/jhovelogo.svg mode change 100755 => 100644 bitcurator/python-packages/importlib-metadata.sls mode change 100755 => 100644 bitcurator/repos/adoptium.sls create mode 100755 bitcurator/theme/menu-config/jhovecli.desktop create mode 100755 bitcurator/theme/menu-config/jhovegui.desktop mode change 100755 => 100644 bitcurator/tools/jhove.sls diff --git a/bitcurator/VERSION b/bitcurator/VERSION index c62f02d..1b50ad0 100644 --- a/bitcurator/VERSION +++ b/bitcurator/VERSION @@ -1 +1 @@ -5.1.0-rc.2 +5.1.0-rc.3 diff --git a/bitcurator/env/usr/local/bin/run-jhovecli.sh b/bitcurator/env/usr/local/bin/run-jhovecli.sh new file mode 100755 index 0000000..0aa8b65 --- /dev/null +++ b/bitcurator/env/usr/local/bin/run-jhovecli.sh @@ -0,0 +1,19 @@ +#!/usr/bin/expect -f + +#trap sigwinch and pass it to the child we spawned +#this allows the gnome-terminal window to be resized +trap { + set rows [stty rows] + set cols [stty columns] + stty rows $rows columns $cols < $spawn_out(slave,name) +} WINCH + +set arg1 [lindex $argv 0] + +spawn -noecho bash +expect "$ " +send "cd ~\n" +send "jhove\n" +interact +exit + diff --git a/bitcurator/env/usr/share/icons/bitcurator/jhovelogo.svg b/bitcurator/env/usr/share/icons/bitcurator/jhovelogo.svg new file mode 100644 index 0000000..bde8b44 --- /dev/null +++ b/bitcurator/env/usr/share/icons/bitcurator/jhovelogo.svg @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bitcurator/python-packages/importlib-metadata.sls b/bitcurator/python-packages/importlib-metadata.sls old mode 100755 new mode 100644 diff --git a/bitcurator/repos/adoptium.sls b/bitcurator/repos/adoptium.sls old mode 100755 new mode 100644 diff --git a/bitcurator/theme/menu-config/jhovecli.desktop b/bitcurator/theme/menu-config/jhovecli.desktop new file mode 100755 index 0000000..937539d --- /dev/null +++ b/bitcurator/theme/menu-config/jhovecli.desktop @@ -0,0 +1,12 @@ +#!/usr/bin/env xdg-open + +[Desktop Entry] +Type=Application +Version=1.34 +Name=JHOVE (CLI) +GenericName=jhovecli +Comment=JHOVE command-line +Terminal=true +Icon=/usr/share/icons/bitcurator/jhovelogo.svg +Exec=run-jhovecli.sh +Categories=Additional Tools diff --git a/bitcurator/theme/menu-config/jhovegui.desktop b/bitcurator/theme/menu-config/jhovegui.desktop new file mode 100755 index 0000000..f907372 --- /dev/null +++ b/bitcurator/theme/menu-config/jhovegui.desktop @@ -0,0 +1,17 @@ +[Desktop Entry] +# JHOVE GUI +# The format of this file is specified at +# http://freedesktop.org/Standards/desktop-entry-spec +# The entries are in the order they are listed in version 1.0 +Type=Application +Version=1.34 +Name=JHOVE (GUI) +GenericName=jhovegui +Comment=JHOVE GUI +Icon=/usr/share/icons/bitcurator/jhovegui.svg +Exec=/usr/local/bin/jhove-gui +Terminal=false +# Categorie entry according to version 1.0 of +# http://www.freedesktop.org/wiki/Specifications/menu-spec +Categories=Additional Tools + diff --git a/bitcurator/tools/jhove.sls b/bitcurator/tools/jhove.sls old mode 100755 new mode 100644