Skip to content

On hyprland using "Show in directory" freezes uosc until opened file manager window is closed #1058

@peppercucumber

Description

@peppercucumber

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions