Let users know where the image is running from, e.g. usb or internal disk.
This commit is contained in:
@@ -26,6 +26,9 @@ class VoicedMenu:
|
|||||||
self.currentItemIndices = {} # Current item index for each section
|
self.currentItemIndices = {} # Current item index for each section
|
||||||
self.stdscr = None
|
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
|
# System services dictionary - maps friendly names to service names
|
||||||
self.systemMenuServices = {
|
self.systemMenuServices = {
|
||||||
'Braille': 'brltty.path',
|
'Braille': 'brltty.path',
|
||||||
@@ -819,7 +822,8 @@ class VoicedMenu:
|
|||||||
self.draw_menu()
|
self.draw_menu()
|
||||||
|
|
||||||
# Welcome message - don't interrupt this initial speech
|
# 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
|
# Wait for initial speech to finish before announcing section
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user