** Summary changed:

- Run lnav inside far2l. Select some line of log. Press m to select. Press c to 
copy to clipboard. Select "Allow once". Try to paste in any other app.  
Expected behavior: log line should be in clipboard as it works in kitty 
terminal, for example.
+ Trying to copy text from lnav to clipboard leads to empty clipboard

** Description changed:

+ 
+ **[ Impact ]**
+ 
+ Run lnav inside far2l. Select a line from the log. Press m to mark.
+ Press c to copy to clipboard. Select "Allow once". Try to paste in any
+ other app. Expected behavior: the log line should be in the clipboard as
+ it works in the kitty terminal, for example.
+ 
+ This happens due to error in OSC52 protocol implementation in far2l.
+ 
+ OSC52 is an actively implemented standard (already supported by Konsole
+ from KDE, for example) for clipboard interaction from console
+ applications. Its implementation in far2l contained a bug that resulted
+ in an empty clipboard after the copy procedure.
+ 
+ **[ Test Plan ]**
+ 
+ The simplest way to test is to try copying a string like "copypasta!" to the 
clipboard by running the following command inside far2l:
+ ```bash
+ printf "\033]52;c;Y29weXBhc3RhIQ==\a\n"
+ ```
+ 
+ Upon pressing "Allow once", the string "copypasta!" should appear in the
+ clipboard. If the bug is present, the clipboard will be empty.
+ 
+ You can also test this using the lnav application by attempting to copy
+ a line to the clipboard as described above.
+ 
+ **[ Where problems could occur ]**
+ 
+ The bug affects all users of applications that support OSC52, as well as
+ those that will support it in the near future, for the entire duration
+ of the LTS release support.
+ 
+ **[ Other Info ]**
+ 
  Already fixed in far2l master:
- https://github.com/elfmz/far2l/pull/2371/files
+ 
[https://github.com/elfmz/far2l/pull/2371/files](https://github.com/elfmz/far2l/pull/2371/files)
  
  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: far2l 2.6.0~beta+ds-1ubuntu0.1
  ProcVersionSignature: User Name 6.8.0-31.31-generic 6.8.1
  Uname: Linux 6.8.0-31-generic x86_64
  ApportVersion: 2.28.1-0ubuntu2
  Architecture: amd64
  CasperMD5CheckMismatches: ./boot/grub/grub.cfg
  CasperMD5CheckResult: fail
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Sep  3 13:17:34 2024
  InstallationDate: Installed on 2024-04-29 (127 days ago)
  InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
  ProcEnviron:
-  LANG=en_US.UTF-8
-  PATH=(custom, no user)
-  SHELL=/bin/bash
-  TERM=xterm-256color
-  XDG_RUNTIME_DIR=<set>
+  LANG=en_US.UTF-8
+  PATH=(custom, no user)
+  SHELL=/bin/bash
+  TERM=xterm-256color
+  XDG_RUNTIME_DIR=<set>
  SourcePackage: far2l
  UpgradeStatus: No upgrade log present (probably fresh install)

** Description changed:

- 
- **[ Impact ]**
+ [ Impact ]
  
  Run lnav inside far2l. Select a line from the log. Press m to mark.
  Press c to copy to clipboard. Select "Allow once". Try to paste in any
  other app. Expected behavior: the log line should be in the clipboard as
  it works in the kitty terminal, for example.
  
  This happens due to error in OSC52 protocol implementation in far2l.
  
  OSC52 is an actively implemented standard (already supported by Konsole
  from KDE, for example) for clipboard interaction from console
  applications. Its implementation in far2l contained a bug that resulted
  in an empty clipboard after the copy procedure.
  
- **[ Test Plan ]**
+ [ Test Plan ]
  
- The simplest way to test is to try copying a string like "copypasta!" to the 
clipboard by running the following command inside far2l:
- ```bash
+ The simplest way to test is to try copying a string like "copypasta!" to
+ the clipboard by running the following command inside far2l:
+ 
  printf "\033]52;c;Y29weXBhc3RhIQ==\a\n"
- ```
  
- Upon pressing "Allow once", the string "copypasta!" should appear in the
- clipboard. If the bug is present, the clipboard will be empty.
+ 
+ Upon pressing "Allow once", the string "copypasta!" should appear in the 
clipboard. If the bug is present, the clipboard will be empty.
  
  You can also test this using the lnav application by attempting to copy
  a line to the clipboard as described above.
  
- **[ Where problems could occur ]**
+ [ Where problems could occur ]
  
  The bug affects all users of applications that support OSC52, as well as
  those that will support it in the near future, for the entire duration
  of the LTS release support.
  
- **[ Other Info ]**
+ [ Other Info ]
  
  Already fixed in far2l master:
- 
[https://github.com/elfmz/far2l/pull/2371/files](https://github.com/elfmz/far2l/pull/2371/files)
+ https://github.com/elfmz/far2l/pull/2371/files
  
  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: far2l 2.6.0~beta+ds-1ubuntu0.1
  ProcVersionSignature: User Name 6.8.0-31.31-generic 6.8.1
  Uname: Linux 6.8.0-31-generic x86_64
  ApportVersion: 2.28.1-0ubuntu2
  Architecture: amd64
  CasperMD5CheckMismatches: ./boot/grub/grub.cfg
  CasperMD5CheckResult: fail
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Sep  3 13:17:34 2024
  InstallationDate: Installed on 2024-04-29 (127 days ago)
  InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
  ProcEnviron:
   LANG=en_US.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
   XDG_RUNTIME_DIR=<set>
  SourcePackage: far2l
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2078844

Title:
  Trying to copy text from lnav to clipboard leads to empty clipboard

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/far2l/+bug/2078844/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to