cnguyen
Posts: 12
Joined: Thu Mar 27, 2014 4:18 pm

Disable desktop controls for raspberry

Wed Oct 08, 2014 8:33 pm

How do I run a python script (pyqt) while at the same time disabling controls outside the script. Basically , how do I disable the desktop control and lock user input to the script only.

Thanks. Love this forum.

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: Disable desktop controls for raspberry

Thu Oct 09, 2014 12:19 am

SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

cnguyen
Posts: 12
Joined: Thu Mar 27, 2014 4:18 pm

Re: Disable desktop controls for raspberry

Thu Oct 09, 2014 7:15 pm

I wanted to run a pyqt app while disabling windows control. Here's what I figured out so far and it seems okay for now.

In terminal:
sudo nano /etc/xdg/lxsession/LXDE/autostart

comment out with # the first 3 lines
#@lxpanel --profile LXDE
#@pcmanfm --desktop --profile LXDE
#@xscreensaver -no-splash

add my pyqt script
@sudo /usr/bin/python3 /home/pi/gui.py

Return to “Python”