gnome.user_get_dir() returns None on Lucid

Bug #615885 reported by zzarko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-python (Ubuntu)
Expired
Low
Unassigned

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?).

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for the report, it has been some time without any response or feedback in this bug report and we are wondering if this is still an issue for you with the latest release of Ubuntu the Natty Narwhal, May you please test with that version and comment back if you're still having or not the issue? Please have a look at http://www.ubuntu.com/download to know how to install that version. Thanks in advance and sorry for the late response.

Changed in gnome-python (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
zzarko (zzarko-gmail) wrote :

I have installed 11.04 a few weeks ago and I have all fresh updates. The function gnome.user_get_dir() still returns None as a result (I tried same sample code as in my original post).

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for gnome-python (Ubuntu) because there has been no activity for 60 days.]

Changed in gnome-python (Ubuntu):
status: Incomplete → Expired
Revision history for this message
zzarko (zzarko-gmail) wrote :

Why expired? Did anyone tried this at console? It still returns None as a result (fully updated Ubuntu 11.04).

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

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

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.