Skip to content

Commit

Permalink
deprecate file server
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Oct 15, 2024
1 parent 9f2427e commit 993ab7b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 67 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@ under mycroft.conf
"homescreen_supported": false
},

// Optional file server support for remote clients
// "gui_file_server": true,
// "file_server_port": 8000,

// Optionally specify a default qt version for connected clients that don't report it
// NOTE: currently only QT5 clients exist
"default_qt_version": 5
},

Expand Down
57 changes: 0 additions & 57 deletions ovos_gui/gui_file_server.py

This file was deleted.

6 changes: 0 additions & 6 deletions ovos_gui/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
get_gui_websocket_config,
send_message_to_gui, GUIWebsocketHandler
)
from ovos_gui.gui_file_server import start_gui_http_server
from ovos_gui.page import GuiPage
from ovos_gui.constants import GUI_CACHE_PATH
namespace_lock = Lock()
Expand Down Expand Up @@ -431,7 +430,6 @@ def __init__(self, core_bus: MessageBusClient):
self.active_extension = _get_active_gui_extension()
self._system_res_dir = join(dirname(__file__), "res", "gui")
self._ready_event = Event()
self.gui_file_server = None
self._init_gui_file_share()
self._define_message_handlers()

Expand All @@ -443,12 +441,8 @@ def _init_gui_file_share(self):
"""
Initialize optional GUI file collection. if `gui_file_path` is
defined, resources are assumed to be referenced outside this container.
If `gui_file_server` is defined, resources will be served via HTTP
"""
config = Configuration().get("gui", {})
# Check for GUI file sharing via HTTP server
if config.get("gui_file_server"):
self.gui_file_server = start_gui_http_server(GUI_CACHE_PATH)
self._cache_system_resources()

def _define_message_handlers(self):
Expand Down

0 comments on commit 993ab7b

Please sign in to comment.