mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-13 18:42:03 +08:00
修复不存在TMPDIR/tmp文件夹时无法打开程序的问题
Some checks failed
Auto Building Wine Runner(rpm) / Explore-GitHub-Actions (push) Has been cancelled
Auto Building Wine Runner(deb) / Explore-GitHub-Actions (push) Has been cancelled
Building Wine Runner Off-line Pages(arm64) / Explore-GitHub-Actions (push) Has been cancelled
Building Wine Runner Off-line Pages(amd64) / Explore-GitHub-Actions (push) Has been cancelled
Some checks failed
Auto Building Wine Runner(rpm) / Explore-GitHub-Actions (push) Has been cancelled
Auto Building Wine Runner(deb) / Explore-GitHub-Actions (push) Has been cancelled
Building Wine Runner Off-line Pages(arm64) / Explore-GitHub-Actions (push) Has been cancelled
Building Wine Runner Off-line Pages(amd64) / Explore-GitHub-Actions (push) Has been cancelled
This commit is contained in:
@@ -8,6 +8,9 @@ if (TMPDIR == None):
|
||||
TMPDIR = ""
|
||||
PIDFILE = TMPDIR + '/tmp/deepin-wine-runner.pid'
|
||||
|
||||
if (not os.path.exists(TMPDIR + "/tmp")):
|
||||
os.makedirs(TMPDIR + "/tmp")
|
||||
|
||||
#程序结束时清理pid
|
||||
@atexit.register
|
||||
def remove_pid():
|
||||
|
||||
Reference in New Issue
Block a user