I added the following lines to /home/pi/.profile

cd /
cd /home/pi/circulation_of_circuits/    

In case it matters, launcher.sh contains this:

cd /
cd home/pi/circulation_of_circuits
python c_of_c.py

When I type startx I goes to a black screen. When I remove the added lines from /home/pi/.profile I can go to startx again.

Why does this happen? And how can I call the script without breaking startx?

(p.s. the same happens for /etc/profile)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.