Skip to content

Commit b5c25b1

Browse files
committed
bugfix
1 parent 69fa33f commit b5c25b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/create_display_config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
#######################################################################
1919

20+
import os
2021
import subprocess
2122

2223
import lib_setup
@@ -36,6 +37,9 @@ def __init__(self):
3637
self.conf_TOUCH_MATRIX_Y = self.__setup.get_val('conf_TOUCH_MATRIX_Y')
3738

3839
def setup_display(self):
40+
if not os.path.isfile('/usr/sbin/lightdm'):
41+
return(False)
42+
3943
self.__write_config_txt()
4044
self.__write_touch_udev()
4145

0 commit comments

Comments
 (0)