Browse Source

Rename lockfile variables

master
Nils 3 years ago
parent
commit
786c2ccfaf
  1. 4
      engine/nsmservercontrol.py

4
engine/nsmservercontrol.py

@ -318,7 +318,7 @@ class NsmServerControl(object):
#Deactivate hooks for now. During init no hooks may be called,
#but some functions want to do that already. We setup the true hooks at the end of init
self.sessionOpenReadyHook= self.sessionOpenLoadingHook= self.sessionClosedHook= self.clientStatusHook= self.singleInstanceActivateWindowHook= self.dataClientNamesHook= self.dataClientDescriptionHook= nothing
self.lockfile_directory = getenv("XDG_RUNTIME_DIR")
self.sessions_lockfile_directory = getenv("XDG_RUNTIME_DIR")
self._queue = list() #Incoming OSC messages are buffered here.
#Status variables that are set by our callbacks
@ -1440,7 +1440,7 @@ class NsmServerControl(object):
#session_name in Agordejo includes subdirs. We want only the basename, like in nsmd. Luckily they are paths.
session_name = pathlib.Path(session_name).name #basename
session_hash:int = self._simple_hash(full_absolute_session_path)
session_lock = pathlib.Path(self.lockfile_directory, "nsm", session_name + str(session_hash))
session_lock = pathlib.Path(self.sessions_lockfile_directory, "nsm", session_name + str(session_hash))
return session_lock

Loading…
Cancel
Save