Commit a774d535 authored by aTc's avatar aTc

fix startup

parent 97c8e34e
pyra-first-run.sh /usr/share/pyra/scripts/
pyra-first-run-wizard.sh /usr/share/pyra/scripts/
first-run.done /var/lib/pyra/
[Unit]
Description=Pyra First Run Wizard
Before=display-manager.service
ConditionPathExists=!/var/lib/pyra/first-run.done
[Service]
Type=oneshot
ExecStart=/usr/share/pyra/scripts/pyra-first-run.sh
ExecStart=/usr/bin/xinit /usr/share/pyra/scripts/pyra-first-run.sh
RemainAfterExit=yes
[Install]
......
#!/bin/sh
export LANG=en_GB.UTF-8
export GTK2_RC_FILES=/usr/share/themes/Xfce/gtk-2.0/gtkrc
export WALLPAPER=/usr/share/pyra/wallpapers/official/pyra-a-720.png
hsetroot -cover $WALLPAPER
#xfwm4 &
zenity --question --title="Pyras Box has been opened." --text="Welcome!\n\nPyra's Box has been opened.\n\nThis wizard will help you setting up your $pnd_version OpenPyra handheld before the first use.\n\nYou will be asked a few simple questions to personalise and configure your device.\n\nDo you want to set up your unit now or shut the unit down and do it later?" --ok-label="Start now" --cancel-label="Shutdown"
touch /var/lib/pyra/not-first-boot
#!/bin/sh
export LANG=en_GB.UTF-8
export GTK2_RC_FILES=/usr/share/themes/Xfce/gtk-2.0/gtkrc
export WALLPAPER=/usr/share/pyra/wallpapers/official/pyra-a-720.png
if [ ! -f "/var/lib/pyra/not-first-boot" ] ; then
/usr/bin/xinit /usr/share/pyra/scripts/pyra-first-run-wizard.sh
fi
hsetroot -cover $WALLPAPER
#xfwm4 &
zenity --question --title="Pyras Box has been opened." --text="Welcome!\n\nPyra's Box has been opened.\n\nThis wizard will help you setting up your $pnd_version OpenPyra handheld before the first use.\n\nYou will be asked a few simple questions to personalise and configure your device.\n\nDo you want to set up your unit now or shut the unit down and do it later?" --ok-label="Start now" --cancel-label="Shutdown"
touch /var/lib/pyra/not-first-boot
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment