Fri Aug 17, 2012 3:18 pm
Fri Aug 17, 2012 7:56 pm
Sat Aug 18, 2012 1:14 pm
fsmithred wrote: If I select the actual kernel and initrd on the grub line, instead of chainloading, it boots normally.
Fri Oct 26, 2012 5:45 pm
# example code only
# if yad is installed, use in preference
if [ -f /usr/bin/yad ]; then
DIALOG="yad"
INFO="image=gtk-dialog-info"
QUESTION="image=gtk-dialog-question"
WARNING="image=gtk-dialog-warning"
ERROR="image=gtk-dialog-error"
#buttons
BUTTON0="button"
BUTTON1="button"
BUTTON0NUM=":0"
BUTTON1NUM=":1"
#cancel button always returns 1 as $?
#ok button always returns 0 as $?
#ok is default (highlighted)
#buttons in yad dialog window may show reversed from zenity window, e.g.
#yad: ok -- cancel (0 -- 1)
#zenity: cancel -- ok (1 -- 0)
else
# use zenity
DIALOG="zenity"
INFO="info"
QUESTION="question"
WARNING="warning"
ERROR="error"
#buttons
BUTTON0="ok-label"
BUTTON1="cancel-label"
BUTTON0NUM=""
BUTTON1NUM=""
fi
# dialog example, this should work for zenity or yad
#
# $DIALOG --$QUESTION --${BUTTON0}="yes please"${BUTTON0NUM} --${BUTTON1}="no thanks"${BUTTON1NUM} --text="some text"
Sat Oct 27, 2012 4:25 am
Sat Oct 27, 2012 7:43 am
meandean wrote:Thats cooll!
of course I don't think escaping from gtk3 is going to be possible but that is still neat
Sat Oct 27, 2012 8:20 pm
ukbrian wrote:Is it a silly idea to develop a html installer in django which Ikey's chosen to do his website with, or something similar?
Thu Nov 01, 2012 10:04 am
Thu Nov 01, 2012 12:56 pm
Thu Nov 01, 2012 2:31 pm
#!/usr/bin/env bash
# refractainstaller-wrapper.sh
#
# Start Refracta Installer using Yad in preference to Zenity.
# If neither yad nor zenity is installed, give a warning message.
if [[ -f /usr/bin/yad ]]; then
/usr/bin/refractainstaller-yad &
elif
[[ -f /usr/bin/zenity ]]; then
/usr/bin/refractainstaller-gui &
else
xterm -hold -fa monaco -fs 14 -geometry 80x20+0+0 -e echo "
Neither Yad nor Yenity is installed. You can't run the GUI version of
Refracta Installer without one of those. Instead, you can run
'refractainstaller' from a terminal or console for the CLI version.
" &
fi
exit 0