Purely for gits and shiggles I thought I'd have a go at writing a 'Favourites' menu that would appear at the top and contain a subset of cores I prefer to use.
I'm using a directory called '/media/fat/_ Favourites' (note the space after the underscore) and it gets populated by this script:
Code: Select all
#!/bin/bash
input="/media/fat/favs.list"
rm -rf "/media/fat/_ Favourites"
mkdir "/media/fat/_ Favourites"
cd "/media/fat/_ Favourites"
while IFS= read -r line
do
for F in ${line}; do
ln -s "$F"
done
done < "$input"
I then create a text file called '/media/fat/favs.list' which looks like this:
Code: Select all
/media/fat/_Computer/BBCMicro*
/media/fat/_Computer/AtariST*
/media/fat/_Computer/TRS-80*
/media/fat/_Computer/Minim*
This creates symlinks inside the favourites folder to any core matching the wildcard. Seems to work nicely. I've put the shell script inside /media/fat/linux and made sure it's executable.
So, given that I just knocked this up for fun (LOT of copy/pasted code, bash shell-scripting isn't my thing) I'm wondering if there's an 'official' way of doing this?