0

I tried to launch the Unity Tweak tool, which had been working fine before, and it wouldn't work at all. When I do it from the terminal, I get this:

user@chrubuntu:~$ unity-tweak-tool
Traceback (most recent call last):
  File "/usr/bin/unity-tweak-tool", line 72, in <module>
    UnityTweakTool.Application()
  File "/usr/lib/python3/dist-packages/UnityTweakTool/__init__.py", line 79, in __init__
    executable_name=cmd_old.split('\x00')[1]
IndexError: list index out of range

How do I fix this?

Jacob Vlijm
  • 83,767
SnorriChinchilla
  • 339
  • 1
  • 5
  • 16

3 Answers3

1

Navigate to init.py file and edit the file

Comment file from line 79 to 89

It worked for me!

LostLife
  • 315
  • 1
  • 10
1

It says: "list index out of range". So, you could change 1 to 2:
1. executable_name=cmd_old.split('\x00')[1] //Change it
2. executable_name=cmd_old.split('\x00')[0] //to this


In order, to do that open terminal and type:

sudo gedit /usr/lib/python3/dist-packages/UnityTweakTool/__init__.py 

Then, go to line 79, executable_name=cmd_old.split('\x00')[1] will be there.

Good luck!

rzaaeeff
  • 111
0

You guys were right, but I didn't know what to do. I copied and pasted this instead https://launchpadlibrarian.net/163835720/init.py

SnorriChinchilla
  • 339
  • 1
  • 5
  • 16