From 66fee1dff249566d453a545da4373eb2e37fe83b Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 28 Aug 2025 01:11:34 -0400 Subject: [PATCH] Let users know where the image is running from, e.g. usb or internal disk. --- usr/local/bin/game_launcher.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr/local/bin/game_launcher.py b/usr/local/bin/game_launcher.py index f0bb188..a86c424 100755 --- a/usr/local/bin/game_launcher.py +++ b/usr/local/bin/game_launcher.py @@ -25,6 +25,9 @@ class VoicedMenu: self.currentSection = 0 # Index of current section self.currentItemIndices = {} # Current item index for each section self.stdscr = None + + # Check if system is installed or running from USB + self.is_installed = os.path.exists("/home/stormux/.baremetal") # System services dictionary - maps friendly names to service names self.systemMenuServices = { @@ -819,7 +822,8 @@ class VoicedMenu: self.draw_menu() # Welcome message - don't interrupt this initial speech - self.speak(f"Welcome to {self.title}. Use left and right arrows to navigate sections. Up and down for items. Press H for help.") + boot_source = "internal disk" if self.is_installed else "USB drive" + self.speak(f"Welcome to {self.title}, booted from {boot_source}. Use left and right arrows to navigate sections. Up and down for items. Press H for help.") # Wait for initial speech to finish before announcing section time.sleep(1)