Skip to content

VTE Regexp should work with older VTE releases as well #10

@jest

Description

@jest

Since the commit b2a47a5 the code is broken on Ubuntu 16.04, which uses the old VTE:

$ terminator
Traceback (most recent call last):
  File "/usr/bin/terminator", line 122, in <module>
    TERMINATOR.create_layout(OPTIONS.layout)
  File "/usr/share/terminator/terminatorlib/terminator.py", line 311, in create_layout
    window, terminal = self.new_window()
  File "/usr/share/terminator/terminatorlib/terminator.py", line 234, in new_window
    terminal = maker.make('Terminal')
  File "/usr/share/terminator/terminatorlib/factory.py", line 94, in make
    output = func(**kwargs)
  File "/usr/share/terminator/terminatorlib/factory.py", line 106, in make_terminal
    return(terminal.Terminal())
  File "/usr/share/terminator/terminatorlib/terminal.py", line 147, in __init__
    self.update_url_matches()
  File "/usr/share/terminator/terminatorlib/terminal.py", line 273, in update_url_matches
    reg = Vte.Regex.new_for_match(re, len(re), self.regex_flags)
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 139, in __getattr__
    self.__name__, name))
AttributeError: 'gi.repository.Vte' object has no attribute 'Regex'

This is reproducible by using PPA ppa:gnome-terminator/nightly-gtk3 on 16.04, caused there by commit version 1.91-0~1835~ubuntu16.04.1.

In https://bugs.launchpad.net/terminator/+bug/1867746/comments/7 you mentioned that the "real" development is moved to GitHub, so I feel encouraged to raise an issue here. :)

(also, I have no idea on how to sanely report the issue on the launchpad...)

Is 16.04 supposed to be dropped? If so, the aformentioned build on LP should be stopped on 1834 for Xenial.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions