use default clipboard provider for wezterm connect

pull/10605/head
Alvin Novian 7 months ago
parent 109f53fb60
commit 3333070033

@ -103,7 +103,12 @@ pub fn get_clipboard_provider() -> Box<dyn ClipboardProvider> {
// TODO: support for user-defined provider, probably when we have plugin support by setting a
// variable?
if env_var_is_set("WAYLAND_DISPLAY") && binary_exists("wl-copy") && binary_exists("wl-paste") {
if env_var_is_set("WEZTERM_UNIX_SOCKET") && binary_exists("wezterm") {
Box::new(provider::FallbackProvider::new())
} else if env_var_is_set("WAYLAND_DISPLAY")
&& binary_exists("wl-copy")
&& binary_exists("wl-paste")
{
command_provider! {
paste => "wl-paste", "--no-newline";
copy => "wl-copy", "--type", "text/plain";

Loading…
Cancel
Save