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

COPY/PAST is not working for applications supported XCLIP #53

Closed
Golyshkin opened this issue Feb 14, 2024 · 19 comments
Closed

COPY/PAST is not working for applications supported XCLIP #53

Golyshkin opened this issue Feb 14, 2024 · 19 comments

Comments

@Golyshkin
Copy link

Actually FAR2M uses TTY Clipboard and COPY/PAST working fine in/from console and other many applications, but it's not working for some other applications for example Telegram

  1. FAR2M <-> Telegram = NOK
  2. TELEGRAM <-> NEDIT <-> FAR2M = OK

Is it possible to investigate how it can be fixed?

Reference: elfmz#810

@shmuz
Copy link
Owner

shmuz commented Feb 14, 2024

  1. Are you running far2m in some TTY mode (e.g. TTY|Xi) or in "GUI" mode?
  2. Does far2m behave differently from far2l in this aspect?

@Golyshkin
Copy link
Author

  1. Are you running far2m in some TTY mode (e.g. TTY|Xi) or in "GUI" mode?

I am running FAR2M using following created desktop file

[Desktop Entry]
Type=Application
Name=far2m
GenericName=far2m
Comment=File and archive manager
Exec=/usr/local/bin/far2m
TryExec=/usr/local/bin/far2m
Terminal=false
Categories=Utility;FileManager;
Icon=far2m
StartupNotify=true

  1. Does far2m behave differently from far2l in this aspect?

There is no such info, since I am not using FAR2L anymore...

@shmuz
Copy link
Owner

shmuz commented Feb 14, 2024

OK then I assume you're running it in GUI mode. This is the mode I use 95% of the time.
It can be verified by the command lua:=actl.WinPortBackend()

Here is what I did to test this issue:

  1. Installed telegram-desktop on Ubuntu 22.04
  2. Tried copy-paste between far2m and telegram and it worked for me in both directions.

I'm somewhat embarrassed that I can't repeat the errors you report.

@shmuz
Copy link
Owner

shmuz commented Feb 14, 2024

Please tell if you build far2m from sources or get it some other way.

@Golyshkin
Copy link
Author

Below are answers on your questions above:
image
image

If you have any additional questions, please feel free to ask me...

@Golyshkin
Copy link
Author

Please tell if you build far2m from sources or get it some other way.

Yes, I am using manual compiled FAR2M version and updating it once per week.

@shmuz
Copy link
Owner

shmuz commented Feb 14, 2024

I'm trying to understand what is different between our systems.
As I'm doing the tests on the same OS as you have, I thought that maybe your far2m was different from mine because you (for example) installed it from PPA. Now that I know you build it from sources I'm again out of ideas.

@akruphi
Copy link

akruphi commented Feb 14, 2024

  1. FAR2M <-> Telegram = NOK

I had such problem Far2l <-> Telegram in Wayland: elfmz#1350 (comment)

You can check

echo $XDG_SESSION_TYPE
echo $GDK_BACKEND
echo $DESKTOP_SESSION

and if you under Wayland you can try running from console: GDK_BACKEND=x11 far2m

@shmuz
Copy link
Owner

shmuz commented Feb 14, 2024

@akruphi
Here is what I see (and copy-paste between far2m and telegram works in both directions).

wayland

ubuntu

@Golyshkin
Copy link
Author

  1. FAR2M <-> Telegram = NOK

I had such problem Far2l <-> Telegram in Wayland: elfmz#1350 (comment)

You can check

echo $XDG_SESSION_TYPE
echo $GDK_BACKEND
echo $DESKTOP_SESSION

and if you under Wayland you can try running from console: GDK_BACKEND=x11 far2m

Yes, you right, this issue is not reproducible for

GDK_BACKEND=x11 far2m

but re-opens the #49

@Golyshkin
Copy link
Author

According to suggestion to check system ENV variables for FAR2M

echo $XDG_SESSION_TYPE
echo $GDK_BACKEND
echo $DESKTOP_SESSION

image

@akruphi
Copy link

akruphi commented Feb 15, 2024

Wayland is new fast developing technology and its implementation often differs significantly in different systems and in different versions of the same system. If it possible please collect info with details (OS version, Wayland version, desktop environment version etc.) for cases with and without bug and add issue about it in elfmz#1350 or in far2l new issue.

@Golyshkin
Copy link
Author

Wayland is new fast developing technology and its implementation often differs significantly in different systems and in different versions of the same system. If it possible please collect info with details (OS version, Wayland version, desktop environment version etc.) for cases with and without bug and add issue about it in elfmz#1350 or in far2l new issue.

Please provide which commands output are u interested to see in the elfmz#1350? I'll do that.

@akruphi
Copy link

akruphi commented Mar 5, 2024

Please provide which commands output are u interested to see in the elfmz#1350? I'll do that.

Which program with far2 give clipboard problem (program name, version + information about system, Desktop Enviroment, etc).

@akruphi
Copy link

akruphi commented Mar 6, 2024

Actual issues about wayland problems: elfmz#2041 and elfmz#2040

@unxed
Copy link

unxed commented Mar 11, 2024

Suggesting to switch Wayland off until upstream bugs causing UX problems are fixed

elfmz#2064

@shmuz
Copy link
Owner

shmuz commented Mar 17, 2024

@Golyshkin
Please try now.

@Golyshkin
Copy link
Author

2.6.0-2024-03-18-e05501c3-beta fixes this issue. thnx

@shmuz
Copy link
Owner

shmuz commented Mar 18, 2024

Thanks to @unxed !

@shmuz shmuz closed this as completed Mar 18, 2024
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

4 participants