What seems the biggest problem, is that you are not using the correct .config folder. Its actually located under your /home/pi/ folder. should be when you open a console, you should start in /home/pi/ from the console. so from there just type
I have actually ran into a very similar issue recently trying to run a different program on startup.
question of the day, are you also using the /home/pi/.config/autostart folder as well?
This is what I did that has mine working now.
SUGGESTION: I personally recommend using Firefox, which on the Raspberry Pi is called ICEWEASEL because its a solid fully developed browser, where chromium isnt very commandline friendly at all.
then the simple code to load a specific website from command line works like this as an example:
From here you log into the desktop, click on the start menu, go down to INTERNET, then RIGHT-CLICK on Iceweasel, and click the create icon on desktop.
from here go back to command line and type
Code: Select all
sudo cp /home/pi/Desktop/iceweasel.desktop /home/pi/.config/autostart/iceweasel.desktop
sudo leafpad iceweasel.desktop
Just modifiy the Icon here by going SCROLLING all the way down to the bottom where it says,
and changing it to
Or whatever your link of the day might be.
NORMALLY 80% of programs run fine from the autostart folder. so once you got this icon configured with your website of choice, save it and reboot and test it. you might be done now.
If it still wont load, continue on
I originally just dropped the desktop Icon for my program that wouldnt run under the above "autostart" folder and it didnt run when I rebooted, So I got a little creative, I opened up the icon using:
Code: Select all
sudo leafpad /home/pi/.config/autostart/Iceweasel.desktop
From here I copied the data that executes on the command line to run the program out, and decided to write some basic python3 code. in order to stall the loading process for the browser. I will show you below what i did. BTW, its ok to clean up the browser ICON by deleting all the foreign languages out of the icon.
- [Desktop Entry]
Comment=Browse the World Wide Web
X-GNOME-FullName=Iceweasel Web Browser
Then saved the above desktop Icon with the python3 code line in it instead. Then i went and
Code: Select all
Which just generates a blank file named as above. open that blank file and insert this text.
- # The Purpose of this document is to stall the ~/.config/autostart/
# folder items load time. On normal startup, Desktop loads on LXDE
# then the panel app(aka the start bar) loads a second or two after
# the desktop. HOWEVER the autostart folder mentioned above actually
# begins loading software that goes in the task bar before the
# taskbar is even created. So I made this python script to stall
# peticular taskbar dependant items from loading so quickly so that
# the task bar would be present before they autostart up.
# THE FOLLOWING SCRIPT IS WRITTEN IN PYTHON 3 -
# This one Specifically is tied to X11VNC loading.
from time import *
Notice in the Parenthesis, on the os.system line, this is where the info from the ICON.Desktop file EXEC= goes. paste the executable line here. So basically what happens is that the Python 3 command runs this above python scipt which causes the icon to take a few more seconds before loading. Then it loads successfully.
So basically, in the pytimer4.py file, the IMPORT commands are required, and the sleep command just causes the system to pause this operation for some number of seconds in the Parenthesis. In this case, 10 seconds. The pause is necessary to allow the desktop to load up fully before running your program.