the xsession script should set the variable only if the needed file is installed

Bug #674047 reported by Marius Gedminas
22
This bug affects 9 people
Affects Status Importance Assigned to Milestone
AppMenu GTK+
Fix Released
Undecided
Ken VanDine
appmenu-gtk (Ubuntu)
Fix Released
Low
Ken VanDine

Bug Description

Binary package hint: appmenu-gtk

1. sudo apt-get install unity
2. sudo apt-get remove unity --auto-remove
3. log out, log in
4. launch any gtk application from a terminal, you'll get a lot of warnings of the kind

    `menu_proxy_module_load': /usr/bin/gvim: undefined symbol: menu_proxy_module_load

    (gvim:11175): Gtk-WARNING **: Failed to load type module: (null)

/etc/X11/Xsession.d/80appmenu should check that appmenu-gtk is installed before putting

    UBUNTU_MENUPROXY="libappmenu.so"

into my environment.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: appmenu-gtk (not installed)
ProcVersionSignature: Ubuntu 2.6.35-23.37-generic 2.6.35.7
Uname: Linux 2.6.35-23-generic i686
Architecture: i386
Date: Thu Nov 11 16:32:56 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
ProcEnviron:
 LANGUAGE=lt_LT:lt:en_GB:en
 LC_CTYPE=lt_LT.UTF-8
 PATH=(custom, user)
 LANG=lt_LT.utf8
 SHELL=/bin/bash
SourcePackage: appmenu-gtk

Related branches

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

the file exporting the variable is shipped with appmenu-gtk so should be cleaned with it but it would be nice to make it handle the case where it's still installed correctly

Changed in appmenu-gtk (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
assignee: nobody → Ken VanDine (ken-vandine)
summary: - leaves UBUNTU_MENUPROXY in the environment after uninstallation
+ the xsession script should set the variable only if the needed file is
+ installed
Revision history for this message
Sebastien Bacher (seb128) wrote :

it's a distribution issue

Changed in appmenu-gtk:
status: New → Invalid
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Checking for the existance of the module would need to happen in 80appmenu, which is from the upstream source. We still need to deal with the clean up in the package as well though.

Changed in appmenu-gtk:
status: Invalid → Confirmed
assignee: nobody → Ken VanDine (ken-vandine)
Ted Gould (ted)
Changed in appmenu-gtk:
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package appmenu-gtk - 0.1.94-0ubuntu1

---------------
appmenu-gtk (0.1.94-0ubuntu1) natty; urgency=low

  * New upstream release.
    ∘ Check for existence of the menu-proxy before using it (LP: #674047)
    ∘ Black list Eclipse for now
 -- Ted Gould <email address hidden> Thu, 17 Feb 2011 14:38:10 -0600

Changed in appmenu-gtk (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Douwe Vos (dmvos2000) wrote :

Aparantly running GTK2 and GTK3 applications side by side gives problems too. The script /etc/X11/Xsession.d/80appmenu is now checking if the file /usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so exists and then puts the environment variable in place. This crashes GTK3 applications.

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

could you open a bug about the new issue describing what appmenu-gtk or appmenu-gtk3 binaries are installed and what segfault you get?

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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