Skip to content

Commit 9cb5bd9

Browse files
author
Frederick
committed
add Wayland support for Linux
1 parent 7d6b85b commit 9cb5bd9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

geopytool/CustomClass.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
version="1.1"
1+
version="1.2"
22

3-
date = '2024-02-07'
3+
date = '2024-02-18'
44

55
dpi = 64
66
# coding:utf-8

geopytool/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/python3
22
# coding:utf-8
33
import sys, os
4+
import platform
5+
6+
if platform.system() == 'Linux':
7+
os.environ['QT_QPA_PLATFORM'] = 'wayland'
48

59
print(sys.path)
610

0 commit comments

Comments
 (0)