You are not logged in.

#1 2013-10-14 21:54:59

labotsirc
Member
Registered: 2013-08-21
Posts: 108

Hot-fix for embedded terminal in Gedit

After the recent upgrade of gnome and gedit, you may have the problem of embedded terminal plugin not working, with an error like:

[cristobal@orion tmfamily]$ gedit 
Traceback (most recent call last):
  File "/usr/lib/gedit/plugins/terminal.py", line 311, in do_activate
    self._panel = GeditTerminalPanel()
  File "/usr/lib/gedit/plugins/terminal.py", line 190, in __init__
    self.add_terminal()
  File "/usr/lib/gedit/plugins/terminal.py", line 193, in add_terminal
    self._vte = GeditTerminal()
  File "/usr/lib/gedit/plugins/terminal.py", line 48, in __init__
    self.set_background_image(None)
AttributeError: 'GeditTerminal' object has no attribute 'set_background_image'

if this is your case, then you can use the following quick fix: comment lines 48,49 of the python file /usr/lib/gedit/plugins/terminal.py
Your file should look like this after the fix:

...
...
 45     def __init__(self):
 46         Vte.Terminal.__init__(self)
 47 
 48         #self.set_background_image(None)
 49         #self.set_background_transparent(False)
 50         self.set_size(self.get_column_count(), 5)
 51         self.set_size_request(200, 50)

..
...
...
..

Now the gedit plugin should work. This is only a hot-fix, something better should be in the way.

Last edited by labotsirc (2013-10-14 22:02:12)

Offline

#2 2013-10-30 19:09:32

kaixi
Member
Registered: 2012-10-14
Posts: 10

Re: Hot-fix for embedded terminal in Gedit

Thank Python for the meaningful errors messages!

Offline

#3 2013-11-14 14:04:32

shadow23
Member
Registered: 2013-11-14
Posts: 3

Re: Hot-fix for embedded terminal in Gedit

finally i can use console in gedit coming from debian to manjaro, thx :-)

Offline

Board footer

Powered by FluxBB