Commit d043658a authored by aTc's avatar aTc

only run once

parent f424f237
......@@ -4,7 +4,8 @@ Before=display-manager.service
[Service]
Type=oneshot
ExecStart=/usr/bin/xinit /usr/share/pyra/scripts/pyra-first-run.sh
ExecStart=/usr/share/pyra/scripts/pyra-first-run.sh
RemainAfterExit=yes
[Install]
WantedBy=graphical.target
#!/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
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"
if [ ! -f "/var/lib/pyra/not-first-boot" ] ; then
/usr/bin/xinit /usr/share/pyra/scripts/pyra-first-run-wizard.sh
fi
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