Skip to content

Commit

Permalink
Update shell metadata handling (#59)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel McKnight <[email protected]>
  • Loading branch information
NeonDaniel and NeonDaniel authored Mar 11, 2024
1 parent c04fd1e commit ae4875c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions neon_gui/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

from ovos_bus_client import Message
from ovos_utils.log import LOG
from ovos_utils.log import LOG, log_deprecation
from ovos_utils.gui import extend_about_data
from datetime import datetime

Expand Down Expand Up @@ -79,9 +79,14 @@ def add_neon_about_data():
build_info = json.load(f)
if build_info.get("image", {}).get("version"):
# Neon OS 2.0; use neon-debos version
extra_data.append({"display_key": "Neon OS",
extra_data.append({"display_key": "Neon Debos",
"display_value": build_info['image']['version']})
if build_info.get("build_version"):
extra_data.insert(0, {"display_key": "Neon OS",
"display_value": build_info["build_version"]})
else:
log_deprecation("Legacy image metadata support is deprecated",
"1.3")
extra_data.extend(_get_legacy_image_metadata(build_info,
core_version))
except FileNotFoundError:
Expand Down

0 comments on commit ae4875c

Please sign in to comment.