maybe it's just me being stupid or looking for answers by asking the wrong questions
I got a Raspi 3 and the 7in touch screen running jessie. Installed wxpython and successfully started a small script displaying a Speedmeter (wx.lib.agw.speedmeter) in Fullscreen.
The Raspi is set to autologin and boots into X
What I want to do is have the whole thing in my car (assuming some OBD interfacing maybe media related stuff via xbmc, openelec or the like, tempsensor,...)
This requires getting the .py executed in some way preferably by a touch (or "double touch") on the Desktop.
I normally do execute from the terminal using "sudo python Whatever.py"
I already tried creating a "pi.desktop" file which shows an Icon but after double clicking there is the circle next to the pointer and nothing happens (circle is gone after 10 sec or so).
My pi.desktop looks like
[Desktop Entry]
Name=MyFunnyApp
Comment=Does weird things
Icon=/usr/share/pixmaps/openbox.xpm
Exec=sudo python "/home/pi/MyStuff/Weird.py"
Type=Application
I did a chmod +x pi.desktop
Unfortunate everything to no avail.
Would appreciate any education/ideas/links