Bug 484073 - The items in list of "packages containing debug information for the following application and libraries are missing" cannot be copypasted due to extra newlines inserted into the pasted text
Summary: The items in list of "packages containing debug information for the following...
Status: RESOLVED INTENTIONAL
Alias: None
Product: drkonqi
Classification: Applications
Component: backtraceparsing (other bugs)
Version First Reported In: git-stable-Plasma/5.27
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-20 14:46 UTC by Alain Knaff
Modified: 2024-03-22 10:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alain Knaff 2024-03-20 14:46:02 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. run an application that triggers a crash (but without having all its *-dev installed)
2. click through drkonqi until you read the "Fetching the Backtrace" screen
3. Click on "list of files"
4. triple click on one of the lines
5. type "dpkg -S " into a terminal
6. attempt to paste line into terminal

OBSERVED RESULT

instead of pasting just the line, a newline character is inserted before *and* after, thus submitting "dpkg -S" on its own, and then the package name on its own to the shell, where a single command was intended

N.B. the preceding newline character is inserted even when selecting part of the line, such as skipping the leading slash, by dragging the mouse over it (at step 4)

EXPECTED RESULT

No extra newlines should be inserted, *especially* when only selecting part of a line.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Harald Sitter 2024-03-22 02:52:43 UTC
You should look into debuginfod. Copy pasting around lines to construct commands is not a feature we support.
Comment 2 Alain Knaff 2024-03-22 10:28:30 UTC
(In reply to Harald Sitter from comment #1)
> You should look into debuginfod.

too complicated.

> Copy pasting around lines to construct
> commands is not a feature we support.

Well, where drkonqi sits, it could abuse the user's trust in a much worse fashion than by injecting malicious stuff into copy-pasted text. So I don't see the point in wanting to "teach the user a lesson" here.

De-installed.