mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-14 02:52:03 +08:00
2.4.0基本结束
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user