torbrowser-launcher: fix launch with python 3.10
This commit is contained in:
parent
a8344c692a
commit
3c720f27cb
2 changed files with 13 additions and 1 deletions
12
srcpkgs/torbrowser-launcher/patches/python310.patch
Normal file
12
srcpkgs/torbrowser-launcher/patches/python310.patch
Normal 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()
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue