Created
September 28, 2023 01:14
-
-
Save ThinGuy/873c14b89bba8285784f1aa6cfb4999b to your computer and use it in GitHub Desktop.
Fix thumbnail problems in Hydrapaper when on a python3-based system or when using Dark mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Fix thumbnails (Long deprecated Image.ANTIALIAS finally removed in PIL 10.0.0) | |
sudo sed -i 's/Image.ANTIALIAS/Image.LANCZOS/g' /usr/lib/python3/dist-packages/hydrapaper/wallpaper_flowbox_item.py | |
# Fix merge issues when using Dark mode (known buy merging to a single wallpaper in dark mode) | |
sudo sed -i 's/ if set_dark else \x27picture-uri\x27//g' /usr/lib/python3/dist-packages/hydrapaper/wallpaper_merger.py | |
# Restart/Reload hydrapaper App |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment