mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-25 14:07:37 -05:00
Add logging
This commit is contained in:
parent
f00d2cc0b0
commit
3464a24e69
@ -413,6 +413,9 @@ class GuiCommon:
|
|||||||
if self.common.platform == "Linux":
|
if self.common.platform == "Linux":
|
||||||
base_path = self.get_resource_path("tor")
|
base_path = self.get_resource_path("tor")
|
||||||
if os.path.exists(base_path):
|
if os.path.exists(base_path):
|
||||||
|
self.common.log(
|
||||||
|
"GuiCommon", "get_tor_paths", "using paths in resources"
|
||||||
|
)
|
||||||
tor_path = os.path.join(base_path, "tor")
|
tor_path = os.path.join(base_path, "tor")
|
||||||
tor_geo_ip_file_path = os.path.join(base_path, "geoip")
|
tor_geo_ip_file_path = os.path.join(base_path, "geoip")
|
||||||
tor_geo_ipv6_file_path = os.path.join(base_path, "geoip6")
|
tor_geo_ipv6_file_path = os.path.join(base_path, "geoip6")
|
||||||
@ -421,6 +424,7 @@ class GuiCommon:
|
|||||||
meek_client_file_path = os.path.join(base_path, "meek-client")
|
meek_client_file_path = os.path.join(base_path, "meek-client")
|
||||||
else:
|
else:
|
||||||
# Fallback to looking in the path
|
# Fallback to looking in the path
|
||||||
|
self.common.log("GuiCommon", "get_tor_paths", "using paths from PATH")
|
||||||
tor_path = shutil.which("tor")
|
tor_path = shutil.which("tor")
|
||||||
obfs4proxy_file_path = shutil.which("obfs4proxy")
|
obfs4proxy_file_path = shutil.which("obfs4proxy")
|
||||||
snowflake_file_path = shutil.which("snowflake-client")
|
snowflake_file_path = shutil.which("snowflake-client")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user