Bug 165925 - there sould be a switch to disable konsole drag and drop feature
Summary: there sould be a switch to disable konsole drag and drop feature
Status: RESOLVED NOT A BUG
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.0
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-07 10:11 UTC by Giacomo Montagner
Modified: 2008-07-07 10:44 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Giacomo Montagner 2008-07-07 10:11:19 UTC
Version:           2.0 (using KDE 4.0.5)
Installed from:    Fedora RPMs
OS:                Linux

Drag and drop feature in a terminal program can be dangerous.
Let's imagin you're taking some notes about your work, and want to store in a text document the commands you give on the command line along with their output. 
You make the selection on Konsole and then paste on the text editor. 
With KDE 3.5, if you made a selection, clicking on the selection and dragging would start a new selection from where you clicked. Useful if you selected some characters at the beginning or the end of the line more than what you wanted. You move the cursor, click in the right place (even if it's inside the selection you already made) and select again. 

Now, with KDE 4.0/Konsole 2.0, if you click inside the selection and drag, you'll drag the selection. If you the release the mouse button the content of the selection will be pasted on the command line and executed. 

If you want to enjoy the power of drag and drop try this: 
1) log in as root on your machine
2) type this command: 

# echo "I don't want to have this command: 
rm -rf /
run on my system" 

3) type <return> 
Nothing bad happens. 

4) now select only "rm -rf /"
5) click on the selection ant drag it, but not outside the konsole window
6) release your mouse button. 

Can you add a switch in the Konsole settings, to easily turn off drag and drop, so that no selection is dragged but, if user clicks on the selection, another selection is started? 

Thanks.
Comment 1 Pino Toscano 2008-07-07 10:44:40 UTC
Reported already (bug #165923).