Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

torbrowser-launcher small bug #636

Closed
djurjo opened this issue Apr 24, 2022 · 5 comments
Closed

torbrowser-launcher small bug #636

djurjo opened this issue Apr 24, 2022 · 5 comments

Comments

@djurjo
Copy link

djurjo commented Apr 24, 2022

Hi, I found a small bug at init.py lines 92-95.
It seems that gui.move(_, _) can only get integers but the operations (desktop.width() - window_size.width()) / 2 and (desktop.height() - window_size.height()) / 2 can return a floating point number raising an error while running the launcher.
A simple solution which I made in my installation is changing the operator / -> // .

hope it helps, thanks for your work !!

bests

@u451f
Copy link
Contributor

u451f commented Apr 25, 2022

See #599 and #628

@djurjo
Copy link
Author

djurjo commented Apr 26, 2022

Thanks :)

@djurjo djurjo closed this as completed Apr 26, 2022
@siriusstar2007
Copy link

Hello,

How do I open the file init.py to modify it?

Thank you!

@siriusstar2007
Copy link

I managed to open the init.py file with the Qt Creator application but I can't save the changes I made because I don't have the permission.
Should I open the init.py file in root mode and if so, how should I do?

Thanks a lot!

@jardasmahel
Copy link

@siriusstar2007 You can open it in nano or sublime text or any text editor. This bug is in Ubuntu so I assume you have linux.
It needed root permission to modify it so just put sudo in front of that command.
So do something like
sudo nano /usr/lib/python3/dist-packages/torbrowser_launcher/__init__.py
Be careful with sudo command tho!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants