Skip to content

Commit

Permalink
fix(clipboard): don't use wl-copy on gnome 46
Browse files Browse the repository at this point in the history
  • Loading branch information
dynobo committed Apr 26, 2024
1 parent 6e2b0b1 commit b7e51af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- Linux: Add `xsel` as another clipboard handler. Try `--clipboard-handler xsel` if
Normcap's result isn't copied to the clipboard correctly.
- Linux: Fix clipboard on Gnome 46 + Wayland. ([#620](https://github.com/dynobo/normcap/pull/620))

## v0.5.4 (2024-01-15)

Expand Down
4 changes: 3 additions & 1 deletion normcap/clipboard/handlers/wlclipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ def is_compatible() -> bool:
return False

gnome_version = system_info.get_gnome_version()
if gnome_version.startswith("45."):
gnome_major = int(gnome_version.split(".")[0])
last_working_gnome_version = 44
if gnome_major > last_working_gnome_version:
logger.debug("%s is not compatible with Gnome %s", __name__, gnome_version)
return False

Expand Down

0 comments on commit b7e51af

Please sign in to comment.