0

I upgraded to Raspbian Buster this morning and everything worked fine, until I added a command to run a python tkinter application in the LXDE-pi autostart file. When I rebooted to test the tkinter app, it launched fine, however, when I closed it there was no desktop behind it as there was in Jessie - just a black screen and a cursor.

I tried commenting out the line in the autostart file, but it still boots to the black screen (but without the tkinter application)

I'm using the official Raspberry Pi 7' Touchscreen and if logs are needed I can get them through SSH

  • What happens if you delete the file instead of commenting out the line? – Fred Sep 26 at 16:40
  • @Fred Removing the line didn't help, but deleting the whole file fixed it. Now the question is how can I run a python script at X start without LXDE autostart? – SImon Sep 27 at 5:48
  • Welcome to Raspberry Pi :-) Please take the short Tour and visit the Help Center to get an idea how things work here. The best way to handle your question is that @Fred makes his comment an answer. Then you can accept his answer and make a new question how to start the script without LXDE autostart. But there are already many answers given here to this problem. – Ingo Sep 27 at 7:58
0

Removing the autostart file should let LXDE start normally again.

Searching the stack here with https://raspberrypi.stackexchange.com/search?q=lxde+autostart suggests that the autostart may need to contain all of the commands needed to start the LXDE window manager (openbox), taskbar (lxpanel), desktop (pcmanfm), etc.

Alternatively, it may work better for your application to create a tkinter.desktop file in ~/.config/autostart according to the LXDE wiki. A .desktop file should look like

[Desktop Entry] 

Type=Tkinter

Exec=tkinter

.desktop files can be named for any applocation and contain any executable in the Exec line, including optional arguments, e.g. Exec=/bin/bash /home/pi/myscript.sh.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.