NoneType error in get_system_focus

Bug #1126116 reported by Avinash Meetoo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Terminator
Fix Released
Undecided
Unassigned

Bug Description

When launched in Fedora, terminator provokes a NoneType error in get_system_focus.

The reason is that self.gconf.get('/apps/metacity/general/focus_mode') evaluates to None and, consequently, doing get_string() on it fails (line 344 in /usr/lib/python2.7/site-packages/terminatorlib/config.py)

My solution, which I've tested, and, so far, works is to change line 344 to:

            if value is not None:
                self.system_focus = value.get_string()

Revision history for this message
Chris Jones (cmsj) wrote :

Which version of Terminator are you using? I think this is already fixed, that code in trunk is guarded by "if value:" which is equivalent to your suggestion.

Changed in terminator:
status: New → Incomplete
Revision history for this message
Avinash Meetoo (avinash) wrote :

Ok.

I'm using terminator 0.96 in Fedora 18 and, as far as I can see, this is the latest version of terminator and, in Fedora at least, the bug still exists.

Avinash

Revision history for this message
Chris Jones (cmsj) wrote : Re: [Bug 1126116] Re: NoneType error in get_system_focus

Hi

Are you able to test with trunk? (this will be released as 1.0 shortly)

bzr branch lp:terminator
cd terminator
./terminator --no-dbus

Cheers,

Chris

On 27 February 2013 18:54, Avinash Meetoo <email address hidden> wrote:

> Ok.
>
> I'm using terminator 0.96 in Fedora 18 and, as far as I can see, this is
> the latest version of terminator and, in Fedora at least, the bug still
> exists.
>
> Avinash
>
> --
> You received this bug notification because you are subscribed to
> Terminator.
> https://bugs.launchpad.net/bugs/1126116
>
> Title:
> NoneType error in get_system_focus
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/terminator/+bug/1126116/+subscriptions
>

Revision history for this message
Avinash Meetoo (avinash) wrote :

Hi,

I've checked. The latest trunk has the required correction.

Thanks for the trouble.
Avinash

Revision history for this message
Chris Jones (cmsj) wrote :

Hi

Great! Thanks for testing.

Cheers,

Chris

Changed in terminator:
status: Incomplete → Fix Committed
Revision history for this message
V. Bakayev (vbakayev) wrote :

reference to Fedora bugzilla downstream ticket:
https://bugzilla.redhat.com/show_bug.cgi?id=820690

Chris Jones (cmsj)
Changed in terminator:
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.