fix: Improve dialog directory selection with proper height, width, and type conversion

This commit is contained in:
Bobby Abellana (aider) 2025-02-11 11:27:48 -08:00
parent f0a002eff1
commit 8b4f00913b

View File

@ -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