Bug#686363: Sessions plugin doesn't load saved sessions

Pietro Battiston me at pietrobattiston.it
Fri Aug 31 15:41:49 UTC 2012


Package: gedit-plugins
Severity: important

I saved a session with the sessions plugin. Now, when I start gedit in a
terminal, I see

Traceback (most recent call last):
  File "/usr/lib/gedit/plugins/sessionsaver/__init__.py", line 67, in
do_activate
    self._insert_menu()
  File "/usr/lib/gedit/plugins/sessionsaver/__init__.py", line 118, in
_insert_menu
    self._update_session_menu()
  File "/usr/lib/gedit/plugins/sessionsaver/__init__.py", line 84, in
_update_session_menu
    _("Recover '%s' session") % session.name,
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 2:
ordinal not in range(128)


and the session doesn't show up in the list.

The thing is really mysterious to me since my only session is called
"galeryremote", without strange characters.

Anyway, the following patch to sessionsaver/__init__.py fixes the
problem:

84c84
<                                 _("Recover '%s' session") %
session.name,
---
>                                 _("Recover '%s' session") %
str(session.name),


Please apply it (or something better...)

Pietro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20120831/16c61ac7/attachment-0002.pgp>


More information about the pkg-gnome-maintainers mailing list