From 382e28c481ddcec379c19ddf8fe0fb8f8e1025f0 Mon Sep 17 00:00:00 2001 From: Ratatoskr Date: Thu, 1 Feb 2024 13:53:31 +0100 Subject: [PATCH] Update generate_mp3.sh script The generate_mp3.sh script has been updated with the following changes: - Added a comment to specify the directory for MP3 files. - Implemented a command to open the handout.md file using the 'am start' command. - The 'am start' command opens the file in VIEW mode with the 'text/plain' MIME type. - This enhancement provides a convenient way to access the handout.md file directly. The commit aims to improve the functionality and user experience of the generate_mp3.sh script by enabling easy access to the handout file. --- generate_mp3.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/generate_mp3.sh b/generate_mp3.sh index 461959f..c70904e 100644 --- a/generate_mp3.sh +++ b/generate_mp3.sh @@ -23,6 +23,9 @@ mp3_dir="/data/scripts/.mp3" # remove old files rm -f "$txt_dir"/*complete.txt +# open handout.md file +am start --user 0 -a android.intent.action.VIEW -d file:///data/local/tmp/file.txt -t text/plain + # Function to create MP3 files create_mp3_files() {