mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 11:47:27 -03:00
Fix tor paths for flatpak
This commit is contained in:
parent
3464a24e69
commit
be1772b2a4
1 changed files with 5 additions and 2 deletions
|
@ -412,7 +412,7 @@ class GuiCommon:
|
||||||
def get_tor_paths(self):
|
def get_tor_paths(self):
|
||||||
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 base_path:
|
||||||
self.common.log(
|
self.common.log(
|
||||||
"GuiCommon", "get_tor_paths", "using paths in resources"
|
"GuiCommon", "get_tor_paths", "using paths in resources"
|
||||||
)
|
)
|
||||||
|
@ -471,7 +471,10 @@ class GuiCommon:
|
||||||
"""
|
"""
|
||||||
Returns the absolute path of a resource
|
Returns the absolute path of a resource
|
||||||
"""
|
"""
|
||||||
|
try:
|
||||||
return resource_filename("onionshare", os.path.join("resources", filename))
|
return resource_filename("onionshare", os.path.join("resources", filename))
|
||||||
|
except KeyError:
|
||||||
|
return None
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_translated_tor_error(e):
|
def get_translated_tor_error(e):
|
||||||
|
|
Loading…
Reference in a new issue