Example digital preservation extensions for the nautilus file-manager.
A small hack I've been meaning to create for a while to demonstrate mechanisms of extending a basic Linux operating system to provide basic digital preservation information that might be useful to folk.
This repository provides users with a choice of two extensions for the nautilus file manager:
- A panel extension to extend information provided looking at a file's properties after clicking right-click -> Properties
- A nautilus columns extension to display digital preservation information in the nautilus list view.
- Siegfried must be installed, and an absolute path must be setup for it in the
digipres_helpers.py
script: seen here. nautilus-python
must be installed via a package manager such asapt get install
(python-nautilus
/python3-nautilus
(newer)).- The scripts must be installed in
~/.local/share/nautilus-python/extensions
. - Whether you choose the columns or the properties script, both require
digipres_helpers.py
which wraps Siegfried and checksum functions. - Nautilus must be restarted, e.g.
$ nautilus -q
.
-
I would recommend running one script or the other, but not both. As both scripts calculate file checksums they can slow your system down. The column extension more-so because it will try and calculate a sum per every file in a folder.
-
digipres_columns_extension.py
is a nice demonstration but nautilus seems to have restricted what is possible, for example, custom columns are not sortable in Ubuntu 18.04 and so this limits the potential of this script. -
digipres_props_extension.py
has some nice potential to be extended and might be useful to folk wanting quick access to information such as a format PUID (PRONOM unique identifier).
- The columns extension will add checksum and PUID information to the nautilus list-view:
- I wanted it to be easier to display and potentially remove duplicates but the extension information can no longer be sorted. It might be possible to do this with older versions of Nautilus though:
- This has become my favorite while writing this today, a
Digipres
tab will appear in your properties view:
- When you click over to the tab you will see similar information to the column view:
- And the information can be selected so if you want to grab some quick statistics about a file you can:
If you give the scripts a whirl, let me know how it goes. Feedback would be great.
Also found along the way was the concept of nautilus-scripts which can add
capability to the context-manager, which I think is pretty cool. You could
integrate bagit.py
as an example (probably!) and be able to bag from the
GUI instead of having to drop into the command-line. The example in
this blog is about
converting files, so there's some scope to use this functionality for #digipres
as well.
- Johan van der Knijff of the KB in The Netherlands linked me to his collection of context manager scripts for the Caja file manager in Linux Mint, which also work in Nautilus.
- What file-manager do you use?
- Is there a better file-manager?
- What is the future of nautilus?
- Folks seem to say it is quite limited on forums, so maybe there is a better file-manager we can use in the field? That we can maybe also extend and provide easily accessible digital preservation output.
- What other information would you like to see?
- Have you already developed something similar?
- If you have already done something similar, please do share! As well as if you take these examples and build on them.
I've included addition resource information in the scripts, but I'll place it here too: