← Back to team overview

desktop-packages team mailing list archive

[Bug 615885] Re: gnome.user_get_dir() returns None on Lucid

 

because you didn't change the bug back from incomplete to new when you
replied to the question, note that gnome-python and libgnome are
deprecated in GNOME3 and you should use gtk equivalents rather

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-python in Ubuntu.
https://bugs.launchpad.net/bugs/615885

Title:
  gnome.user_get_dir() returns None on Lucid

Status in “gnome-python” package in Ubuntu:
  Expired

Bug description:
  Binary package hint: python-gnome2

  When trying to execute the following Python code:

  import gnome
  print gnome.user_dir_get()

  the result is None. Expected behaviour is (I guess) to return string
  containing the user's gnome2 directory. This function is used in some
  gedit plugins (ie. Profile plugin, http://yguarata.com/blog/2008/07/04
  /gedit-plugin-to-exportimport-tools-and-plugins/) and causes their
  activation to fail:

  Traceback (most recent call last):
  File "/home/zzarko/.gnome2/gedit/plugins/ProfilePlugin.py", line 35, in module
  PROFILE_TEMP = gnome.user_dir_get() + '/gedit-profile.tar.gz'
  TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

  Tried on Ubuntu 10.04 with latest updates. python-gnome2 is 2.28.0.
  Some other Python gnome libraries are also 2.28.0, while others are
  2.30.0. Gnome is 2.30.0 (maybe that's the problem?).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-python/+bug/615885/+subscriptions