In a Plugin I've created, I'm able to send the name of the Display to a file by using the command:
fe.plugin_command( "/usr/bin/printf9.sh", "\"" + fe.list.name + "\"" );
The above plugin command then invokes the printf9.sh bash script as follows;
#!/bin/bash
sudo /usr/bin/printf "$1" > "/home/pi/.attract/romlists/FAVOURITES/$1.temp"
However, instead of the name of the Display (ie fe.list.name), is there a way of sending the name of the Romlist to a file please?