Browse Source

feat: receptor 中添加环境变量

pull/13018/head
Aaron3S 7 months ago committed by Bryan
parent
commit
969069dde0
  1. 2
      receptor

2
receptor

@ -65,6 +65,8 @@ class ReceptorService:
except ValueError:
print("\n- PID file is corrupted, starting Receptor...")
os.remove(self.pid_file)
os.environ.update({'LOCAL_CONNECTION_ENABLED': '1'})
process = subprocess.Popen(self.receptor_command)
with open(self.pid_file, 'w') as f:
f.write(str(process.pid))

Loading…
Cancel
Save