Unable to drag file from nautilus into gnumeric

Bug #139564 reported by Jon Kåre Hellan
4
Affects Status Importance Assigned to Milestone
gnumeric (Ubuntu)
Invalid
Low
Unassigned
goffice (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: gnumeric

This may not be well known, but gnumeric supports drag & drop pretty well. One of the things you can do is drag a spreadsheet, text or image file from nautilus or another file manager and drop it into gnumeric. Gnumeric will then open the spreadsheet, import the text file, or insert the image.

However, this doesn't work in Ubuntu Feisty, (gnumeric 1.7.8-0ubuntu1). Nothing happens. If started from a terminal, gnumeric prints the following on the terminal:

  "Received URI file:///home/jk/diskuser.gnumeric with mime type application/octet-stream.
   I have no idea what to do with that."

The problem is that the mime type for the URI isn't recognized. Gnumeric detects mime type by calling the libgoffice function go_get_mime_type (uri_str).

Was libgoffice built with gnome disabled? If so, it always returns application/octet-string, and we get
the observed behaviour in gnumeric.

Revision history for this message
Jérôme Guelfucci (jerome-guelfucci-deactivatedaccount) wrote :

Thank you for your bug report. I can confirm this; I will add a libgoffice bug task.

Changed in gnumeric:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Julian Robbins (joolsr) wrote :

Still exhibits the same problem in Gutsy.

ie

Received URI file:///home/julianr/network_files/workfiles/D1300-D1399/D1329%20-%20Indra%20A400M%20Planar%20Antennas/Tests/6%20inch%20sinuous/August%202007%200.5-4GHz%20sinuous%20spiral/22-08-07%20sn5579/Linear%20patterns/4GHz%205579_Lin_P1_E.csv with mime type text/csv.
I have no idea what to do with that.

Is this related to the problem, that you cannot assign .csv files to Gnumeric? It doesnt stick when you do this, you have to right click and choode Gnumeric each time.

Revision history for this message
Jon Kåre Hellan (hellan) wrote :

No, not related. When you drag a file into gnumeric, gnumeric must figure out the mime type itself. To be able to do so, it has to built with gnome-vs support, which it isn't in Ubuntu.

When you click on a file in the file manager or desktop, it is up to nautilus to figure out the mime type and start the right application.

Revision history for this message
Andreas Moog (ampelbein) wrote : Old standing report

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thank you for taking the time to report this bug and helping to make
Ubuntu better. You reported this bug a while ago and there hasn't been
any activity in it recently. We were wondering is this still an issue
for you? Can you try with latest Ubuntu release? Thanks in advance.

 status incomplete
 subscribe

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAki1cvoACgkQ06FgkPZwicQXLgCfZiIwNvU3d+m4QZLyhP1Mdnz7
+j4AnjAPKXP6wPfYLnjFBQuyKf5WRr4k
=5cVF
-----END PGP SIGNATURE-----

Revision history for this message
Julian Robbins (joolsr) wrote :

It does seem to work ok now.

Using Ubuntu 8.0.4.1 dragging images, text files, even html opens them in Gnumeric. Dragging an xls file didnt work though, I got an error message Unrecoqnised file format. Oddly, if I try and open a normal .xls file in this std version of gnumeric, I got the same error message, wheras in gnumeric-gtk, it opens fine, AFAIR.

Interesting, if you install gnumeric-gtk (NOT the default option in Ubuntu), then dragging and dropping doesnt work.

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

Closing the report then.

Changed in gnumeric:
status: Confirmed → Invalid
Changed in goffice:
status: New → Invalid
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.