terminator crashes: TypeError: Item 0: Must be number, not str

Bug #1983099 reported by Benjamin Drung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Terminator
Fix Released
Unknown
terminator (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

"terminator -e command" crashes when called via x-terminal-emulator symlink:

```
Traceback (most recent call last):
  File "/usr/bin/x-terminal-emulator", line 133, in <module>
    TERMINATOR.layout_done()
  File "/usr/lib/python3/dist-packages/terminatorlib/terminator.py", line 329, in layout_done
    terminal.spawn_child()
  File "/usr/lib/python3/dist-packages/terminatorlib/terminal.py", line 1482, in spawn_child
    self.vte.feed(_('Unable to find a shell'))
TypeError: Item 0: Must be number, not str
```

Steps to reproduce in a clean environment:

1. Launch ubuntu-22.04-desktop-amd64.iso
2. Try Ubuntu
3. Open terminal
4. Install terminator:
```
echo "deb http://archive.ubuntu.com/ubuntu/ jammy universe" | sudo tee -a /etc/apt/sources.list
sudo apt update
sudo apt -y install terminator
```
5. Run following command:
```
terminator -e "sh -c 'echo success; sleep 2'"
```
This command will open terminator and print "success".
6. Run the same command via the x-terminal-emulator symlink:
```
x-terminal-emulator -e "sh -c 'echo success; sleep 2'"
```

Revision history for this message
Eric Ashley (eashleyfl) wrote :

I've reproduced this. Bringing up preferences and making any change to trigger a ~/.config/terminator/config create makes the issue disappear. Maybe install should add the global /etc/xdg/terminator/config? Or rather than triggering this error, try to create a user config before declaring the error, only declaring the error if creating a default user config fails?

Revision history for this message
Benjamin Drung (bdrung) wrote :
Changed in terminator:
status: Unknown → Fix Released
Revision history for this message
Benjamin Drung (bdrung) wrote :

The fix landed in 2.1.3-1

Changed in terminator (Ubuntu):
status: New → 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.