Compare commits

...

2 Commits

Author SHA1 Message Date
7e67920719 Merge branch 'testing' of https://git.deck.sh/Interfaz/ff into testing 2022-10-25 01:38:09 -05:00
b3d26107f9 git fix 2022-10-25 01:33:35 -05:00
3 changed files with 9 additions and 12 deletions

View File

@ -250,7 +250,7 @@ if __name__ == '__main__':
sys.stderr = Logger(filename=find_data_file("output.log")) sys.stderr = Logger(filename=find_data_file("output.log"))
with Manager() as manager: with Manager() as manager:
with Pool(processes=5) as pool: with Pool(processes=5) as pool:
with open(find_data_file('config.yml'), 'r') as fileread: with open(find_data_file('config.yml'), 'r') as fileread:
#global config #global config
config = yaml.safe_load(fileread) config = yaml.safe_load(fileread)
@ -276,6 +276,7 @@ if __name__ == '__main__':
killme = manager.Value('d', 0) killme = manager.Value('d', 0)
#killme = False #killme = False
# launch background UI app as process # launch background UI app as process
util.clear_fwll()
p = Process(target=taskbartool.background, args=(displaydata,settings,killme)) p = Process(target=taskbartool.background, args=(displaydata,settings,killme))
p.start() p.start()
#p.join() # not a foreground job, so let's not join it #p.join() # not a foreground job, so let's not join it
@ -288,11 +289,4 @@ if __name__ == '__main__':
# launch loop - non-blocking! # launch loop - non-blocking!
counter = 0 counter = 0
while(keeprunning): while(keeprunning):
mainloop(pool) mainloop(pool)

View File

@ -242,8 +242,7 @@ class ServerPanel(wx.Panel):
def on_stop(self, event): def on_stop(self, event):
fprint('in on_stop') fprint('in on_stop')
settings["running"] = False settings["running"] = False
# JANK JANK util.clear_fwll()
util.run_cmd('Remove-NetFirewallRule -Group "IPPigeon"')
def on_window(self, event): def on_window(self, event):
fprint("open settings") fprint("open settings")

View File

@ -117,4 +117,8 @@ class Logger(object):
sleep(0) sleep(0)
def flush(self): def flush(self):
print("", end="") print("", end="")
def clear_fwll():
if win32:
run_cmd('Remove-NetFirewallRule -Group "IPPigeon"')