Just as an additional info:<bookmark href="file:///root/Downloads/apps/MRUF-lst-0.9.1.pet" added="2016-09-07T12:59:17Z" modified="2016-09-07T12:59:17Z" visited="2016-09-07T12:59:17Z">
<info>
<metadata owner="http://freedesktop.org">
<mime:mime-type type="application/pet"/>
<bookmark:applications>
<bookmark:application name="Pale Moon" exec="'palemoon %u'" modified="2016-09-07T12:59:17Z" count="2"/>
</bookmark:applications>
</metadata>
</info>
</bookmark>
The script/symbolic link to run Pale Moon Browser is named: palemoon.
And yes: palemoon is the defaultbrowser.
Probably it is smarter not to examine the /name/ (as you do in the your script), but to examine /exec/ and to grab /name/ just for the name shown in MRUF menu entry?