Red Hat Bugzilla – Bug 109993
Drag and drop when you double click an executable text file
Last modified: 2007-11-30 17:10:33 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1)
Description of problem:
When I double click to open an executable text file (like a perl
script that I want to edit) in nautilus the cursor turns into the drag
and drop copy cursor (it doesn't matter if I choose "Display" or
"Cancel" from the "Run or Display?" dialog that comes up). Since I
don't have the mouse button down I have to click somewhere and drop
the file to get the cursor to change back to normal.
I've had this happen with files of type "perl script" and "plain text
document", probably any text file would do. The file must have the
users execute bit set in the file's permissions. It doesn't matter
what application I have associated with these file types I still get
the same bug unless I use nautilus' own text viewer instead of an
external application. The bug goes away when I remove the execute bit
from the text file. I've found that this isn't a problem if you try
this from the Desktop, only from within the nautilus program. I've
also found this isn't a problem if you select the file and press the
'Enter' key to open the file.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. open nautilus
2. find/create a text file with the execute permission bit set
3. double click the executable text file (assuming you have an
external application like gvim, vi, gedit, etc. associated with this
type of text file)
4. In the "Run or Display?" dialog choose either "Display" or "Cancel"
Actual Results: After step four you begin drag and drop which is not
what should happen when you double click a file.
Expected Results: Drag and drop should not have started; the cursor
should have remained a normal arrow and the user should not have to
click to conclude the drag and drop operation.
Works for me in fc3test3. Seems fixed in Gnome 2.8.