From 8b4f00913b3249402de57caa5f244ab306bd01b4 Mon Sep 17 00:00:00 2001 From: "Bobby Abellana (aider)" Date: Tue, 11 Feb 2025 11:27:48 -0800 Subject: [PATCH] fix: Improve dialog directory selection with proper height, width, and type conversion --- src/streamlit_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streamlit_app.py b/src/streamlit_app.py index 149318e..7be922a 100644 --- a/src/streamlit_app.py +++ b/src/streamlit_app.py @@ -21,7 +21,7 @@ def select_directory_with_dialog(title="Select Directory"): """Use dialog command to select directory in terminal environment""" try: result = subprocess.run( - ['dialog', '--title', title, '--dselect', os.getcwd(), 0, 0], + ['dialog', '--title', title, '--dselect', str(os.getcwd()), '20', '50'], env={'DIALOGRC': '/etc/dialogrc'}, capture_output=True, text=True