Skip to content

Commit

Permalink
Set ignition's known hosts file location
Browse files Browse the repository at this point in the history
[appimage]
[deploy]
[pin]
  • Loading branch information
cipres authored and cipres committed Aug 5, 2021
1 parent 63e2cf7 commit 75a8cf9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions galacteek/application/__init__.py
Expand Up @@ -1176,6 +1176,8 @@ def setupPaths(self):
'torrent_state.pickle')
self._bitMessageDataLocation = self.dataLocation.joinpath(
'bitmessage')
self.geminiHostsLocation = self.dataLocation.joinpath(
'gemini_known_hosts')

qtConfigLocation = Path(QStandardPaths.writableLocation(
QStandardPaths.ConfigLocation))
Expand Down
8 changes: 8 additions & 0 deletions galacteek/browser/schemes/gemini/__init__.py
Expand Up @@ -21,6 +21,14 @@ class GeminiSchemeHandler(BaseURLSchemeHandler):
Requests are made using the ignition library.
"""

def __init__(self, parent=None, noMutexes=False):
super().__init__(parent=parent, noMutexes=noMutexes)

# Set the default gemini known hosts file location
ignition.set_default_hosts_file(
str(self.app.geminiHostsLocation)
)

def geminiRequest(self, url: str):
# Run in the thread executor
try:
Expand Down
1 change: 1 addition & 0 deletions galacteek/services/dweb/inter/__init__.py
@@ -1,4 +1,5 @@
import enum


class InterceptorMessageTypes(enum.Enum):
Ready = 1
6 changes: 6 additions & 0 deletions galacteek/ui/mainui.py
Expand Up @@ -119,6 +119,12 @@ def iAboutGalacteek():
</p>
<br/>
<p>Website:
<a href="https://galacteek.gitlab.io">
https://galacteek.gitlab.io
</a>
</p>
<p>GitLab:
<a href="https://gitlab.com/galacteek/galacteek">
https://gitlab.com/galacteek/galacteek
Expand Down

0 comments on commit 75a8cf9

Please sign in to comment.