My PuppyPin file I want to write has variables, but they`re written as literals:
Code: Select all
<?xml version="1.0"?>
<pinboard>
<backdrop style="Stretched">$MNT/docs/pics/EndlessBlue_1680.jpg</backdrop>
<icon x="32" y="32" label="file">/usr/local/bin/rox</icon>
<icon x="102" y="32" label="mount">/usr/sbin/pmount</icon>
<icon x="32" y="128" label="console">/usr/bin/rxvt</icon>
<icon x="32" y="224" label="play">/usr/local/bin/defaultmediaplayer</icon>
<icon x="32" y="320" label="browse">/usr/local/bin/defaultbrowser</icon>
<icon x="32" y="416" label="Apps">$MNT/apps</icon>
<icon x="102" y="416" label="DnLd">$MNT/dnld</icon>
<icon x="32" y="512" label="Docs">$MNT/docs</icon>
<icon x="102" y="512" label="Docs_PC">$MNT/docs_PC</icon>
<icon x="32" y="608" label="AppPkg">$MNT/AppPkg</icon>
<icon x="32" y="704" label="BaCon">$MNT/BaCon</icon>
<icon x="32" y="852" label="trash">/usr/local/apps/Trash</icon>
</pinboard>
Then I tried single quoting each line of code except for the variables.
Both methods just write $MNT instead of it`s value: /mnt/sda3
I hope I don`t have to do a complex set of "echo -e -n" commands.
Seems like it should be simple, just another reason why I dislike XML...
### HowTo write an XML file so variables in it are evaluated properly?