From 405135ad591772e0703ff239b3760ab486a52550 Mon Sep 17 00:00:00 2001 From: tomasklaen Date: Thu, 25 Aug 2022 21:08:19 +0200 Subject: [PATCH] fix: load-subtitles menu crashing when there's no file open closes #132 --- uosc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uosc.lua b/uosc.lua index eaee324..ff1d289 100644 --- a/uosc.lua +++ b/uosc.lua @@ -3723,7 +3723,7 @@ mp.add_key_binding(nil, 'load-subtitles', function() end end if not path then - path = os.getenv('HOME') --[[@as string]] + path = mp.command_native({'expand-path', options.default_directory}) end open_file_navigation_menu( path,