torbrowser-launcher: fix launch with python 3.10

This commit is contained in:
Michal Vasilek 2021-10-15 23:31:31 +02:00
parent a8344c692a
commit 3c720f27cb
2 changed files with 13 additions and 1 deletions

View file

@ -0,0 +1,12 @@
--- a/torbrowser_launcher/__init__.py
+++ b/torbrowser_launcher/__init__.py
@@ -90,8 +90,8 @@ def main():
desktop = app.desktop()
window_size = gui.size()
gui.move(
- (desktop.width() - window_size.width()) / 2,
- (desktop.height() - window_size.height()) / 2,
+ (desktop.width() - window_size.width()) // 2,
+ (desktop.height() - window_size.height()) // 2,
)
gui.show()

View file

@ -1,7 +1,7 @@
# Template file for 'torbrowser-launcher'
pkgname=torbrowser-launcher
version=0.3.5
revision=2
revision=3
archs="i686 x86_64" # limited by Tor Browser itself
build_style=python3-module
hostmakedepends="gettext python3-distro python3-setuptools"