I update to Ubuntu 22.04 and Tor Browser is not working anymore. I removed Tor Browser and when I tried to re-install it by running "torbrowser-launcher", I get the following error message:
Tor Browser Launcher
Von Micah Lee, lizensiert unter MIT
Version 0.3.3
Erzeuge GnuPG Verzeichnis /root/.local/share/torbrowser/gnupg_homedir
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Lade Tor Browser das erste mal herunter.
Herunterladen
Traceback (most recent call last): File "/usr/bin/torbrowser-launcher", line 30, in <module> torbrowser_launcher.main() File "/usr/lib/python3/dist-packages/torbrowser_launcher/__init__.py", line 98, in main gui.move(
TypeError: arguments did not match any overloaded call: move(self, QPoint): argument 1 has unexpected type 'float' move(self, int, int): argument 1 has unexpected type 'float'Thanks for your help!
11 Answer
You can fix this by going into the __init__.py file and changing the lines (98) in /usr/lib/python3/dist-packages/torbrowser_launcher/:
gui.move( (desktop.width() - window_size.width()) / 2, (desktop.height() - window_size.height()) / 2 )To:
gui.move( int((desktop.width() - window_size.width()) / 2), int((desktop.height() - window_size.height()) / 2) )Another solution is posted on the official GitHub: (which in general does the same)
Both solutions are valid. I assume it will be fixed in the next update.
Explanationgui.move expects two integers, but can get two floats from the division. Therefore explicit casting to int is needed.
2