no dialogue pops up when picture dir is not created

Bug #685290 reported by Jan Jacobs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dexter - Old
Fix Released
Medium
Allen Lowe

Bug Description

When a user who doesnt have /home/<username>/Pictures tries to set a picture for a contact, nothing happens.
commandline output shows the following:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dexter/NewcontactDialog.py", line 410, in photo_button_clicked
    chooser.set_current_folder(glib.get_user_special_dir(glib.USER_DIRECTORY_PICTURES))
TypeError: Gtk.FileChooser.set_current_folder() argument 1 must be string, not None
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/apport_python_hook.py", line 105, in apport_excepthook
    os.O_WRONLY|os.O_CREAT|os.O_EXCL, 0600), 'w')
OSError: [Errno 2] File or Folder not found: '/var/crash/_usr_bin_dexter.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dexter/NewcontactDialog.py", line 410, in photo_button_clicked
    chooser.set_current_folder(glib.get_user_special_dir(glib.USER_DIRECTORY_PICTURES))
TypeError: Gtk.FileChooser.set_current_folder() argument 1 must be string, not None

Related branches

Allen Lowe (lallenlowe)
Changed in dexter-rolodex:
assignee: nobody → Allen Lowe (lallenlowe)
importance: Undecided → Medium
status: New → In Progress
status: In Progress → Fix Committed
Revision history for this message
Danielle Foré (danrabbit) wrote :

Might be too late, but I'm hoping the fix doesn't involve a dialog and just goes to ~/ instead...

Revision history for this message
Allen Lowe (lallenlowe) wrote :

yup, that's exactly what it does, just falls back to ~/ ;)

Changed in dexter-rolodex:
milestone: none → 0.12
Changed in dexter-rolodex:
milestone: none → 0.13
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.