We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f70fae9 commit 9d6b7a7Copy full SHA for 9d6b7a7
kiosk_interface/__init__.py
@@ -71,6 +71,15 @@ def __init__(self):
71
self.datasdir = os.path.join(self.rootdir, "datas")
72
self.viewsdir = os.path.join(self.rootdir, "views")
73
74
+ if sys.platform.startswith("win"):
75
+ pidfile = os.path.join("C:\\", "tmp", "kiosk.pid")
76
+ else:
77
+ pidfile = os.path.join("/", "tmp", "kiosk.pid")
78
+
79
+ with open(pidfile, "w") as pidfb:
80
+ pidfb.write("%s"%os.getpid())
81
+ pidfb.close()
82
83
# Notify the application when something is happening
84
self.notifier = Notifier()
85
# Action launched when the kiosk emit a notification
0 commit comments