Trying to copy text from lnav to clipboard leads to empty clipboard
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
far2l (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Noble |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
This happens due to error in OSC52 protocol implementation in far2l internal terminal emulator.
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.
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.
[ 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:
printf "\033]52;
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 itself:
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.
[ Where problems could occur ]
Potentially it may broke OSC52, but as it is already broken, it does not look like a serious risk factor.
[ Other Info ]
Already fixed in far2l master:
https:/
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: far2l 2.6.0~beta+
ProcVersionSign
Uname: Linux 6.8.0-31-generic x86_64
ApportVersion: 2.28.1-0ubuntu2
Architecture: amd64
CasperMD5CheckM
CasperMD5CheckR
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-
XDG_RUNTIME_
SourcePackage: far2l
UpgradeStatus: No upgrade log present (probably fresh install)
summary: |
- 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: | updated |
description: | updated |
description: | updated |
description: | updated |
tags: |
added: verification-done verification-done-noble removed: verification-needed verification-needed-noble |
This bug was fixed in the package far2l - 2.6.3~beta+ ds-1ubuntu3
--------------- beta+ds- 1ubuntu3) oracular; urgency=medium
far2l (2.6.3~
* Add a patch to fix broken osc52 in VT (LP: #2078844).
-- Dmitry Shachnev <email address hidden> Wed, 04 Sep 2024 09:38:08 +0300