Thu Apr 11, 2013 5:18 pm
Thu Apr 11, 2013 5:59 pm
Fri Apr 12, 2013 6:32 pm
#!/usr/bin/env bash
# put the name of a test file between the quotes
boot_menu=""
# If your editor is not geany, gedit, kwrite, leafpad, medit,
# or mousepad, put the fill path to the editor here (between the quotes)
# and add a command-line option if needed.
other_editor=""
other_editor_option=
find_editor () {
if [[ -e /usr/bin/geany ]] ; then
editor="/usr/bin/geany"
editor_option="-i"
elif [[ -e /usr/bin/gedit ]] ; then
editor="/usr/bin/gedit"
elif [[ -e /usr/bin/kwrite ]] ; then
editor="/usr/bin/kwrite"
elif [[ -e /usr/bin/leafpad ]] ; then
editor="/usr/bin/leafpad"
editor_option="--sync"
elif [[ -e /usr/bin/medit ]] ; then
editor="/usr/bin/medit"
editor_option="-n"
elif [[ -e /usr/bin/mousepad ]] ; then
editor="/usr/bin/mousepad"
elif [[ -n "$other_editor" ]] ; then
editor="$other_editor"
editor_option="$other_editor_option"
else
echo " No suitable editor found.
You must set the other_editor variable in $0
Exiting..."
if $(grep -q /dev/${DEVICE}1 /proc/mounts) ; then
pumount /dev/${DEVICE}1
fi
exit 0
fi
}
find_editor
"$editor" "${editor_option}" "$boot_menu"
echo "Done!"
exit 0
Sat Apr 13, 2013 3:37 pm
boot_menu="/home/user/Documents/text.txt"
Sat Apr 13, 2013 7:51 pm
"$editor" ${editor_option} "$boot_menu"
Sun Apr 14, 2013 12:50 am
Sun Apr 14, 2013 4:53 pm
wodim *.iso
wodim dev="$burn_device" -v -eject driveropts=burnfree speed="$burn_speed" -data "$snapshot_dir"/"$filename" \
| tee >(zenity --title="Burning CD..." --progress --pulsate)
Sun Apr 14, 2013 7:39 pm
Sun Apr 14, 2013 10:08 pm
Got a shortage of working burners here.
Mon Apr 15, 2013 11:12 am
Not such a daft idea then if you've been there already, my thinking was it saves the user going to the menu to select a burner and then having to navigate to the ISO file, more intuitive, more user friendly.I think there was a version of refractasnapshot that used wodim to burn the iso. Not sure if that ever got finished and uploaded. I'll have to look around and will revisit the idea.