Page 1 of 1

simple start up script

Posted: Sat Jun 22, 2013 3:47 pm
by apples723
I'm new to the raspberry community and im learning to program and i was wondering if there was a way i could run a simple script i wrote that asks your name and how old you are and how are you and eventually says if you are not the main user you need to get of this pi but i want it to launch script in an application when it boots to destop is this possible?

Re: simple start up script

Posted: Sun Jun 23, 2013 7:41 pm
by apples723
anyone

Re: simple start up script

Posted: Mon Jun 24, 2013 10:04 pm
by BobTheLeemet
/home/pi/.config/autostart should you be autostart directory when it comes to desktop

Re: simple start up script

Posted: Tue Jun 25, 2013 12:35 am
by apples723
thanks trying right now

Re: simple start up script

Posted: Tue Jun 25, 2013 2:40 am
by BobTheLeemet
Assuming it's a python script you're running, create a file in the directory I mention with .desktop extension.
yourscript.desktop for an example and the contents should be something like that:

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=myscipt
Comment=Exec=sudo python /home/pi/myscipt.py
StartupNotify=false
Terminal=false
Hidden=false
This might come handy also about the .desktop sepc: http://linuxcritic.wordpress.com/2010/0 ... ktop-file/