So recently I installed Hyprland and using script-binding uosc/show-in-directory opens file manger window (Dolphin in my case) and it works as intended, but uosc freezes and stays frozen until I close that file manager window. Video and audio plays file, but all UI is not responsive. After closing window it unfreezes. Before I used KDE Plasma and had no problems with this.
After some investigation I found that in main.lua bind_command('show-in-directory', function() uses utils.subprocess for linux, while for windows and mac it uses utils.subprocess_detached. It seems not detaching subprocess makes uosc script freeze while window is opened. Maybe Hyprland handles this differently? Anyway, changing to utils.subprocess_detached for both linux and fallback option using xdg-open fixed this issue.
I would suggest changing this to utils.subprocess_detached, unless there is a reason not to use it.