bs-manager icon indicating copy to clipboard operation
bs-manager copied to clipboard

[BUG] : BS-Manager hangs after opening folders in a file manager

Open ppebb opened this issue 5 months ago • 3 comments

Issue encountered

When opening a file manager (such as from the Open Logs button or the Open Folder button for an instance), bs-manager hangs and does not accept input until the opened application is closed. I expect it is not disowning the process properly.

Expected Behavior

BS-Manager is usable even while a file manager it has opened is still running.

Steps to Reproduce

  1. Navigate to an instance
  2. Click open folder
  3. Observe

Operating System

Linux

Version

bs-manager-git v1.5.3.r26.gd210c0f-1

Additional Context

No response

ppebb avatar Jul 18 '25 03:07 ppebb

@ppebb Couldn't replicate the issue with the master and AUR build. Might be an issue on your file explorer rules or something. Can you send a video of how the issue is produced, also probably show you memory resource while doing this.

silentrald avatar Jul 18 '25 05:07 silentrald

My file manager is pcmanfm. I have an entry in ~/.config/mimeapps.list for inode/directory=pcmanfm.desktop. When running xdg-open on a filepath, it opens pcmanfm and exits, allowing me to use the terminal while the file manager is still open (thus it seems it properly disowns the child process).

Here is a video of the issue: https://github.com/user-attachments/assets/7a8c14db-a9a4-4486-9386-d8231c47ced4

My cursor is invisible for some reason, but all I am doing is clicking Open Folder and then clicking Launch a few times.

ppebb avatar Jul 18 '25 07:07 ppebb

Replaced my file manager on my path with

#!/usr/bin/env bash

echo "$@"
/bin/pcmanfm "$@" &
disown

which fixes the issue. This indicates the project has an assumption the executed file manager will disown itself upon running. From looking around, it's probably an issue with electron's openPath function called here not using xdg-open.

ppebb avatar Jul 22 '25 23:07 ppebb