2.4.0基本结束

This commit is contained in:
2022-10-24 22:11:03 +08:00
parent 7b83c7ef5f
commit 59e6da0652
67 changed files with 552 additions and 102 deletions

View File

@@ -91,11 +91,11 @@ def Read():
time.sleep(0.01)
# Lock 锁防止多次调用
if os.path.exists("/tmp/deepin-wine-runner-keyboard-lock"):
print("不可多次调用")
print("锁 /tmp/deepin-wine-runner-keyboard-lock 已存在")
sys.exit(1)
os.mknod("/tmp/deepin-wine-runner-keyboard-lock")
#if os.path.exists("/tmp/deepin-wine-runner-keyboard-lock"):
# print("不可多次调用")
# print("锁 /tmp/deepin-wine-runner-keyboard-lock 已存在")
# sys.exit(1)
#os.mknod("/tmp/deepin-wine-runner-keyboard-lock")
threading.Thread(target=Read).start()
with keyboard.Listener(
on_press=on_press,