As there is no other answer showing how to actually rename photos with the titles added in Shotwell, here is a quick way to script it using bash, as you say in the comments that you already have a python alternative. There may well be other ways of doing it, but this one might be useful for someone.
As you have already given your pictures a title in Shotwell and exported them, and found out where the metadata is stored that Shotwell adds, it is relatively straightforward to put a script together.
Please install libimage-exiftool-perl, as that will be necessary for the script.
1) If you use exiftool -a G1 -s pic.jpg, you can see all the metadata types and tags embedded within a picture, and also where Shotwell places the metadata:
[XMP-photoshop] Headline : 002
[XMP-dc] Title : 002
[IPTC] Caption-Abstract : 002
[IPTC] Headline : 002
[IPTC] OriginatingProgram : Shotwell
[IPTC] ProgramVersion : 0.13.1+trunk
2) Now either the XMP-photoshop or the IPTC tags can be used with exiftool in our script to show the metadata (and then use that resulting value to rename the file).
Entering exiftool -IPTC:headline pic.jpg results in
Headline : 002
and this can be parsed with awk and fed back as the variable to rename the file:
mv -i "$i" "$(exiftool -IPTC:headline "$i" | awk -F ': ' '{print $2}').jpg"
3) The final script would be like this:
#!/bin/bash
for i in *.jpg
do
mv -i "$i" "$(exiftool -IPTC:headline "$i" | awk -F ': ' '{print $2}').jpg"
done
So, now all your files have been renamed with their Shotwell titles, as we see when we examine one with exiftool -a -G1 -s pic.jpg:
ExifTool Version Number : 9.12
File Name : 002.jpg
Notes:
The repository version of exiftool is fine, but is quite old, so if you need support for various new features and bugfixes, see the official site for how to build and install the more recent version.
All of the metadata is preserved unchanged by the script, as only the actual file itself is being renamed.
The script will obviously only work if your pictures have titles created with Shotwell embedded within them, but it could be adapted for other purposes.
There may also be an alternative way to do this with exiftool, without invoking awk, so I will investigate further.
For more general information, see man exiftool or the Ubuntu manpages online.