Menu item in panel doesn't work. Can't select in "open with..." menu in Nautilus.

Bug #581376 reported by DarrenShare
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNOME Media Player
Fix Released
High
Bilal Akhtar

Bug Description

I noticed that Gnome-media-player is no longer an option in the "open with..." menu in Nautilus, it has been there in previous versions because it was set as the default on my system.

Further investigation led me to discover the menu item in the panel under Applications | Sound & Video didn't do anything. I suspect these two things are related.

Things I've discovered:
If I open Alacarte, trying to open the properties for the GMP menu item doesn't open the properties dialogue. It does, however, create a file in ~/.local/share/applications called gnome-media-player.desktop.undo-# where # is a number every time the properties button is pressed. These are removed when alacarte is closed. The menu item also refuses to be deleted.

Running alacarte from the terminal produces this output when I click on properties:

(gnome-desktop-item-edit:15576): Gtk-CRITICAL **: gtk_tree_model_get_iter_first: assertion `GTK_IS_TREE_MODEL (tree_model)' failed
**
ERROR:panel-ditem-editor.c:757:panel_ditem_editor_setup_ui: code should not be reached

And this when I press delete:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/Alacarte/MainWindow.py", line 627, in on_delete_button_clicked
    self.on_edit_delete_activate(None)
  File "/usr/lib/pymodules/python2.6/Alacarte/MainWindow.py", line 333, in on_edit_delete_activate
    self.editor.deleteItem(item)
  File "/usr/lib/pymodules/python2.6/Alacarte/MenuEditor.py", line 352, in deleteItem
    self.__writeItem(item, hidden=True)
  File "/usr/lib/pymodules/python2.6/Alacarte/MenuEditor.py", line 549, in __writeItem
    keyfile = util.DesktopParser(file_path)
  File "/usr/lib/pymodules/python2.6/Alacarte/util.py", line 29, in __init__
    if len(self.read(filename)) == 0:
  File "/usr/lib/python2.6/ConfigParser.py", line 286, in read
    self._read(fp, filename)
  File "/usr/lib/python2.6/ConfigParser.py", line 510, in _read
    raise e
ConfigParser.ParsingError: File contains parsing errors: /usr/share/applications/gnome-media-player.desktop
 [line 14]: 'realvideo;video/x-matroska;video/x-ms-asf;video/x-msvideo;video/x-ms-wmv;video/x-ogm;video/x-theora;\n'

Things I've tried to do:

Purge/reinstall GMP.
Deleted any GMP related entries from ~/.config/menus/applications.menu.
Deleted ~/.config/menus/applications.menu.
Deleted ~/.local/share/applications/gnome-media-player.desktop.

None of the above have fixed the problem.

[EDIT]GMP runs fine from the command line and other launchers such as Gnome-Do.

Ubuntu 10.04
gnome-media-player:
  Installed: 0.1.2-1bzr95~lucid1
  Candidate: 0.1.2-1bzr95~lucid1
  Version table:
 *** 0.1.2-1bzr95~lucid1 0
        500 http://ppa.launchpad.net/gnome-media-player-development/development/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

description: updated
Revision history for this message
Michael Lamothe (lamothe-deactivatedaccount-deactivatedaccount) wrote :

Bilal, it looks like your latest commit broke it, the MimeType is split over lines 13 and 14 [0].

[0] http://bazaar.launchpad.net/~gnome-media-player-development/gnome-media-player/development/revision/95/gnome-media-player.desktop.in

Changed in gnome-media-player:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Fixed in revision 96.

Changed in gnome-media-player:
assignee: nobody → Bilal Akhtar (bilalakhtar96)
milestone: none → 0.1.3
status: Confirmed → Triaged
status: Triaged → Fix Committed
Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Packages pushed to PPA, being built right now and should be ready within an hour.

Revision history for this message
Michael Lamothe (lamothe-deactivatedaccount-deactivatedaccount) wrote :

Thank you Darren for providing a very useful/complete bug report and thank you Bilal for fixing this quickly.

Revision history for this message
DarrenShare (darren-moorstreet) wrote :

@Michael. You're welcome.

Quick work with the fix. Thanks.

Revision history for this message
DarrenShare (darren-moorstreet) wrote :

Just an FYI (this might have been caused by my original attempts to fix this bug). After updating, the menu item worked fine but I still couldn't open the menu item properties in alacarte. I had to completely purge GMP, delete the menu item and ~/.local/share/applications/gnome-media-player.desktop and then reinstall GMP.

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

@DarrenShare:
After purging gmp, etc, is the alacarte problem solved? Actually whenever an update of GMP is installed on a computer, the problem that occurs is that the deb replaces the desktop file in /usr/share/applications/ but not in ~/.local/share/applications/ . GNOME overrides the desktop file in the former with the latter. To solve this, the user must delete the file in ~/.local/share/applications/ and then kill gnome-panel to force GNOME to use the desktop file in /usr/share/applications .

Revision history for this message
DarrenShare (darren-moorstreet) wrote :

Yes, all fine now.

Thanks.

Changed in gnome-media-player:
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.