I'm new in Kivy and this question might be silly, but I need to fix this issue.
I have a Kivy app running on raspberry pi stretch lite. I set config.ini for Kivy mouse and it is working as long as it runs by:
python KivyTest.py
But if I set the file on startup mode doing this:
sudo nano /etc/rc.local
...then write:
sudo python //KivyTest.py &
...before the exit 0
then after rebooting, py runs automatically but on this mode, the mouse is hidden and I can not see it. while it has an effect on buttons on Kivy app when I click it.
Does anyone know what is the problem?
side to side comparison
Since you are executing your application at startup in "/etc/rc.local" with "sudo" which means as a root-user, you need to make the same modifications to the "config.ini" file for showing the cursor in the following path:
/root/.kivy/config.ini
as you did for "config.ini" in:
~/.kivy/config.ini
PS The tilde (~) symbol stands for your home directory.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.