Skip to content
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

ueberzugpp support on wayland #77

Open
bartlibert opened this issue Sep 28, 2023 · 1 comment
Open

ueberzugpp support on wayland #77

bartlibert opened this issue Sep 28, 2023 · 1 comment

Comments

@bartlibert
Copy link

ueberzugpp supports wayland, but I cannot use it in ctpv because there is an explicit check that disables ueberzug in wayland.

I recompiled with the change below and now image previews are working perfectly.

Probably some better fix could be added (check for ueberzugpp? introduce a forceueberzug flag? ...) but this at least seams to work fine.

diff --git a/sh/helpers.sh b/sh/helpers.sh
index fef8691..f194557 100644
--- a/sh/helpers.sh
+++ b/sh/helpers.sh
@@ -52,7 +52,7 @@ set_image_method() {
 	[ -n "$forcekittyanim" ] && is_kitty && is_anim_image && { image_method="$image_method_kitty"; return 0; }
 	[ -n "$forcechafa" ] && exists chafa && { image_method="$image_method_chafa"; return 0; }

-	[ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ] && exists ueberzug &&
+	exists ueberzug &&
 		[ -n "$fifo" ] && [ -e "$fifo" ] &&
 		{ image_method="$image_method_ueberzug"; return 0; }
@bartlibert bartlibert changed the title ueberzupp support on wayland ueberzugpp support on wayland Sep 28, 2023
@cain-dev
Copy link

that would be nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants