self-operating-computer
self-operating-computer copied to clipboard
[FEATURE] How to handle Wayland Support
If you are having issues installing:
Like others have mentioned, installing with python3.11 will solve package installation errors
If you have a Wayland Compositor:
Essentially if gnome-shell's screenshot tool failed for you because you have KDE Plasma or another modern Linux distro you can alias the gnome screenshot tool to whatever your distro uses, an example setup script:
#BASH
# Create the wrapper script
sudo tee /usr/local/bin/gnome-screenshot << 'EOF'
#!/bin/bash
# Redirect gnome-screenshot calls to spectacle
OUTPUT_FILE="${1:-/tmp/screenshot.png}"
# Handle common gnome-screenshot arguments
while [[ $# -gt 0 ]]; do
case $1 in
-f|--file)
shift
OUTPUT_FILE="$1"
;;
--file=*)
OUTPUT_FILE="${1#*=}"
;;
-w|--window)
# Use active window mode in spectacle
spectacle -a -b -o "$OUTPUT_FILE"
exit $?
;;
esac
shift
done
# Default: full screen screenshot
spectacle -f -b -o "$OUTPUT_FILE"
EOF
sudo chmod +x /usr/local/bin/gnome-screenshot
# Ensure it's in PATH
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc