Skip to content

Commit 0056ae4

Browse files
committed
Disabled pyautogui FAILSAFE
1 parent 4eccf05 commit 0056ae4

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

libs/python/computer-server/computer_server/handlers/linux.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
# This allows the server to run in headless environments
2424
try:
2525
import pyautogui
26+
pyautogui.FAILSAFE = False
2627

2728
logger.info("pyautogui successfully imported, GUI automation available")
2829
except Exception as e:

libs/python/computer-server/computer_server/handlers/macos.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pyautogui
2+
pyautogui.FAILSAFE = False
23
from pynput.mouse import Button, Controller as MouseController
34
from pynput.keyboard import Key, Controller as KeyboardController
45
import time

libs/python/computer-server/computer_server/handlers/windows.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# Try to import pyautogui
1919
try:
2020
import pyautogui
21+
pyautogui.FAILSAFE = False
2122
logger.info("pyautogui successfully imported, GUI automation available")
2223
except Exception as e:
2324
logger.error(f"pyautogui import failed: {str(e)}. GUI operations will not work.")

0 commit comments

Comments
 (0)