Scribus files open in Firefox if Scribus is not installed, should offer to install it

Bug #972475 reported by Fabián Rodríguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
shared-mime-info (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

When double-clicking a Scribus file (XML, .sla extension), it opens in Firefox instead of offering to install Scribus.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: nautilus 1:3.3.92-0ubuntu2
ProcVersionSignature: Ubuntu 3.2.0-20.33-generic 3.2.12
Uname: Linux 3.2.0-20-generic x86_64
ApportVersion: 1.95-0ubuntu1
Architecture: amd64
Date: Tue Apr 3 10:09:12 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
 LANGUAGE=en_CA:en
 TERM=xterm
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: nautilus
UpgradeStatus: Upgraded to precise on 2012-03-06 (27 days ago)

Revision history for this message
Fabián Rodríguez (magicfab) wrote :
summary: - Scribus files open in Fireofox if Scribus is not installed, should offer
+ Scribus files open in Firefox if Scribus is not installed, should offer
to install it
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, could you add an example file to the bug? I guess that the scribus format is a subtype of xml or similar that firefox claims to handle, that's not really a bug...

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

that problem is not really solvable, the other side of it is "should open a .c file in gedit" or "should be suggest installing an IDE for it"

Revision history for this message
Fabián Rodríguez (magicfab) wrote :

The document on this page (which I extracted and attached here):
http://www.april.org/poster-le-logiciel-libre-comment-ca-marche

Even after installing scribus-ng I have to manually assign the application.

Revision history for this message
Fabián Rodríguez (magicfab) wrote :

I am not sure I understand your second comment, .c files do open with gedit if no IDE is installed which is a sensible fallback. Opening a (presumably) known file format in Firefox isn't, OTOH.

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

> .c files do open with gedit if no IDE is installed which is a sensible fallback.

.c are a known format, they are subtypes of plain text which opens in gedit

> Opening a (presumably) known file format in Firefox isn't, OTOH.

how is that different from the gedit case? firefox claims to handle xml so nautilus use the "best" option it has, since nothing installed claim the specific mimetype for scribus it picks an xml editor, the same way it picks a text editor to display a .c

Revision history for this message
Fabián Rodríguez (magicfab) wrote :

That's what I am saying, it's the same except we don't have a good fallback. Failing a good fallback, Ubuntu should propose applications/packages known to handle that format, in this case, scribus-ng.

Revision history for this message
Fabián Rodríguez (magicfab) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

what is a good fallback and what is a bad fallback? how do you programaticly know that firefox is a bad fallback for scribus files, is it a bad fallback for all xml files? if it is should it still be listed as handling xml?

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

the bug you point should be fixed with triggers, what mimetype is displayed in nautilus properties?

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

The issue is a chicken and egg problem. Without scribus installed, nautilus has no knowledge at all of what a scribus file is, so it correctly identifies the file as a standard xml file (as that is basically all it is really), and picks an existing application that handles xml files (and Firefox is more than capable of viewing xml files)

Revision history for this message
Fabián Rodríguez (magicfab) wrote :

Nautilus now says "Scribus Document (application/vnd.scribus)" - this is after I assigned the file type to it permanently when I first tried to open it unsuccesfully.

Since Scribus is often mentioned as one of the major desktop applications in the Ubuntu official documentation, I was expecting a better user experience for this, much like when I try to open media files in unexpected non-free formats. See:
http://www.ubuntu.com/search/google-appliance/scribus

COuld we use the same mechanism to recognize Scribus files?

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

one thing we can easily do is move the mimetype definition to shared-mime-info, that should address most of that specific case

affects: nautilus (Ubuntu) → shared-mime-info (Ubuntu)
Changed in shared-mime-info (Ubuntu):
status: Incomplete → New
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package shared-mime-info - 1.0-0ubuntu3

---------------
shared-mime-info (1.0-0ubuntu3) precise; urgency=low

  * debian/patches/scribus.patch: list scribus type so nautilus suggests
    to install the software correctly (lp: #972475)
 -- Sebastien Bacher <email address hidden> Wed, 04 Apr 2012 17:54:05 +0200

Changed in shared-mime-info (Ubuntu):
status: Confirmed → Fix Released
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.