Nautilus asks if I would like to run a .html file. I am positive I would not.

Bug #353548 reported by Michael Jones
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
New
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: nautilus

When trying to open a .html file on a read-only CD that I did not create, Nautilus asks me if I would like to run the "executable text file". I am positive that if I'm double clicking on a .html file, I want to open it in firefox. If i wanted to run the file, I would not have saved it as a .html.

Revision history for this message
Michael Jones (jonesmz) wrote :
Revision history for this message
Andreas Moog (ampelbein) wrote :

How would nautilus know? It could be some sort of script.

Thank you for taking the time to report this issue and helping to make Ubuntu better. Examining the information you have given us, this does not appear to be a bug report so we are closing it and converting it to a question in the support tracker. We appreciate the difficulties you are facing, but it would make more sense to raise problems you are having in the support tracker at https://answers.launchpad.net/ubuntu if you are uncertain if they are bugs. For help on reporting bugs, see https://help.ubuntu.com/community/ReportingBugs#When%20not%20to%20file%20a%20bug.

Changed in nautilus (Ubuntu):
status: New → Invalid
Revision history for this message
Michael Jones (jonesmz) wrote :
Download full text (3.7 KiB)

This is not a question, this is a bug report. I am absolutely certain this is a bug, and I reported it as such.

Nautilus will know that it is an HTML file in the same manner that Windows Explorer on Windows knows that it is an HTML file. The file extension exists for a reason. Both for user sanity as well as for programs to tell what it is that they are being asked to open.

the G++, GCC, and mpiCC compilers all three refuse to compile a .cpp program if it does not have the .cpp extension on the end of it.
jonesmz@jonesmz-desktop:~$ mpiCC iteration
iteration: file not recognized: File format not recognized
collect2: ld returned 1 exit status

Renaming this file to iteration.cpp results in the desired behavior.

This indicates that G++,GCC and mpiCC all know what a .cpp file is, and what it isn't. meaning that nautilus is perfectly capable of understanding what an HTML file is and what it isnt. or alternatively, what is an HTML file, and what is not.

This is also a bug, but a different one.

Nautilus asking me each time I ask it to open a file that is CLEARLY a .html file (Both via the file extension ".html" as well as the contents of the file that look similar to

<!DOCTYPE doctype PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>

  <meta http-equiv="Content-Type"
 content="text/html; charset=iso-8859-1">

  <meta name="GENERATOR"
 content="Mozilla/4.79 [en] (X11; U; IRIX 6.5 IP32) [Netscape]">
  <title></title>
</head>
  <body>

<center><font size="+3"><br>
   Parallel Scientific Computing in C++ and MPI</font> <br>
    <font size="+3">Chapter 7 Overview</font></center>

<p><br>
     <br>
     </p>

Please notice that .html files follow a standard dictated by some committee somewhere.
They contain tags that state <html>, indicating they are .HTML files.

Why is nautilus asking me if I would like to execute a markup-language file? It is not possible as far as I know. Firefox does not execute .HTML files, it parses them and displays information that it generates based on the contents of the .html file.

Similarly, what purpose is served by running this file in the terminal? What will it do? What shell will parse it? Can Lynx be used as a shell? Would that even do anything useful if lynx wasn't installed on the machine?

What purpose is served by asking me if I would like to cancel? I obviously indicated I wanted something done with the file by either double clicking, or pressing enter.

Why does it state "Display"? My general assumption is that display means display in a text editor. Which I will add is what happens if I double click a .cpp file.

This is not a question.
In Windows or Mac, double clicking on this file would have displayed the default web-browser. This is the behavior that I anticipate the majority of people expect.
If I wanted nautilus to do something OTHER than display the .html file in firefox, I would have used the right context menu.

and, to boot, please notice that my screenshot CLEARLY shows the file-type icon I believe I should be associating with a webbrowser, on the file I wanted to open in firefox.

Do not give an ic...

Read more...

Changed in nautilus (Ubuntu):
status: Invalid → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

what filesystem do you use for the CD? is the file marked as executable there?

Changed in nautilus (Ubuntu):
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Michael Jones (jonesmz) wrote :

The CD was provided to me with the book listed here

http://www.cfm.brown.edu/people/gk/books.html#mpi

I am currently not at my apartment, so I will check when I return.

I do not know if the file is marked as executable. But as I discussed above, why would it matter?

-Mike

Revision history for this message
Sebastien Bacher (seb128) wrote :

> why would it matter?

because if that's the case that's a known bug on vfat filesystems and a duplicate

Revision history for this message
Michael Jones (jonesmz) wrote :

Also, it should be noted that when accessing my server (where the file on the cd drive) through places->connect to server-> using ssh, that double clicking it immediately opens it in firefox.

How can I discover the filesystem type on the cd when not physically there? df doesn't have it, nautilus->right click on whitespace->properties doesn't say.

Changed in nautilus (Ubuntu):
status: Incomplete → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

you didn't reply to the +x question but let's assume that's a duplicate of bug #14335

Revision history for this message
Michael Jones (jonesmz) wrote :

How can I find the file system type?

Here is a screenshot of the file permissions, I apologize for not getting this earlier.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.