-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux Support #9
Comments
please do not clutter this repository with 4o generated garbage. this codebase does not even use python, it is implemented in TypeScript. |
how to install in linux ? |
Wayland support is a must for linux today. |
Related to bytedance#9 Add Linux support, including Wayland and X11, to the project. * **Environment Detection**: - Add `isWayland` constant to check if the display server is Wayland in `src/main/env.ts`. - Update `isLinux` constant to differentiate between Wayland and X11 in `src/main/env.ts`. * **Device Handling**: - Import `isWayland` in `src/main/agent/device.ts`. - Add condition to handle Wayland-specific functionalities using `@nut-tree/nut.js` in `src/main/agent/device.ts`. - Update `screenshot` method to handle Wayland-specific functionalities in `src/main/agent/device.ts`. * **Input Controls**: - Import `isWayland` in `src/main/agent/execute.ts`. - Add condition to handle Wayland-specific input controls in `src/main/agent/execute.ts`. * **Documentation**: - Add installation and usage instructions for Linux, including Wayland and X11, in `README.md`.
This is absolutely amazing. Please support Linux, platforms like Ubuntu and Fedora, via PyAutoGui.
Context:
Yes,
pyautogui
supports Ubuntu, Fedora, and most other Linux distributions as long as Python is installed. However, there are some considerations and dependencies specific to Linux:Steps to Use PyAutoGUI on Linux
Install Python
Install PyAutoGUI
pyautogui
via pip:Install Additional Dependencies
pyautogui
relies onpython3-xlib
,scrot
, andxdotool
for certain functionalities:Test PyAutoGUI
pyautogui
works:Key Features Supported on Linux
scrot
.Known Limitations on Linux
Wayland: If your desktop environment uses Wayland (common in Fedora and newer Ubuntu releases),
pyautogui
may face issues with capturing screenshots or mouse movements. Wayland restricts certain screen and input controls for security.Permission Issues: Some environments require elevated permissions to control the screen or input. Use
sudo
cautiously for testing but avoid it for scripts in production.Conclusion
Yes,
pyautogui
works on Ubuntu and Fedora, but you may need to adjust for dependencies and potential limitations if running on Wayland. For full compatibility, consider using X11.The text was updated successfully, but these errors were encountered: