[intrepid]emesene gives bad interpretation of hotmail access

Bug #241765 reported by Guybrush88
2
Affects Status Importance Assigned to Milestone
emesene (Ubuntu)
Fix Released
Low
Emilio Pozuelo Monfort

Bug Description

from an upgrade from hardy to intrepid, emesene badly interprets the access to my hotmail account, as it considers it as a text file, so he uses gedit to open the html code instead of using the default browser (firefox in my case) to open the relative website. is that resolvable?

Guybrush88 (guybrush)
description: updated
description: updated
Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

I don't think this is a emesene problem. If you double click in a html file from nautilus, what does it open, gedit or a browser?

If you right click it, go to Properties->Open with, what is selected there?

Changed in emesene:
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Guybrush88 (guybrush) wrote :

from nautilus it hets opened with a normal browser, with emesene it gets opened with gedit

Revision history for this message
Guybrush88 (guybrush) wrote :

*gets

Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote : Re: [Bug 241765] Re: [intrepid]emesene gives bad interpretation of hotmail access

Guybrush88 wrote:
> from nautilus it hets opened with a normal browser, with emesene it gets
> opened with gedit
>

What happens if you launch the following command from a terminal?
gnome-open /usr/share/emesene/hotmlog.htm

Revision history for this message
Guybrush88 (guybrush) wrote :

it opens the file with gedit and it closes 1-2 seconds after it is open

Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

Then it's not emesene's fault.

You didn't answer to this question:

"If you right click it, go to Properties->Open with, what is selected there?"

Revision history for this message
Guybrush88 (guybrush) wrote :

in Properties->Open with it is selected Firefox

Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

What is the output of the following command?

cd /usr/share/emesene/ && python -c 'import desktop; print desktop.get_desktop()'

Revision history for this message
Guybrush88 (guybrush) wrote :

it changes directory to /usr/share/emesene/ and it doesn't say anything about the command python -c 'import desktop; print desktop.get_desktop()'

Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

Can you paste the output of this command? (remove first the personal info)
python -c 'import os; print os.environ'

What happens if you do this?
python -c "import webbrowser; webbrowser.open('/usr/share/emesene/hotmlog.htm')"

Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

I've just upgraded to Intrepid and got this too, I'll investigate it

Changed in emesene:
status: Incomplete → Confirmed
Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

The problem is that emesene is using desktop.py to open links, which uses gnome-open if the user is using GNOME.

gnome-open uses gnome-vfs, and since gnome-vfs 1:2.22.0-4, text/html is a "subclass" of text/plain, and text/plain is opened in a text editor so text/html is now too.

I see two solutions here: switch desktop.py to use gvfs-open (which isn't valid for Debian until Lenny+1 and isn't a good idea for backports in Ubuntu) or use webbrowser instead. I'll look into doing this.

Thanks for your bug report and for all your help!

Changed in emesene:
assignee: nobody → pochu
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package emesene - 1.0-dist-3

---------------
emesene (1.0-dist-3) unstable; urgency=low

  * debian/control:
    - Move python-gnome2-extras from Recommends to Suggests, as it's only
      needed for the Spell plugin and brings many modules and dependencies.
  * debian/emesene-launcher:
    - Pass arguments to Controller.py
  * debian/patches/from_upstream_fix_gtk_image_loading.patch:
    - Patch from upstream r1394, loads an stock image if the personal one
      couldn't be loaded.
  * debian/patches/use_webbrowser_module_to_open_html_local_files.patch:
    - Use webbrowser module instead of desktop.py from emesene to open
      local html files, as desktop.py will use gnome-open for GNOME which
      uses gnome-vfs, which since 1:2.22.0-4 makes text/* a subgroup of
      text/plain, making them being opened with a text editor instead of
      the browser. LP: #241765.
      For Lenny+1, if upstream doesn't change this code, it could be
      possible to just switch desktop.py to use gvfs-open.

 -- Emilio Pozuelo Monfort <email address hidden> Sat, 28 Jun 2008 10:47:02 +0100

Changed in emesene:
status: Fix Committed → 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.