[BUG] : BS-Manager hangs after opening folders in a file manager
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
- Navigate to an instance
- Click
open folder - Observe
Operating System
Linux
Version
bs-manager-git v1.5.3.r26.gd210c0f-1
Additional Context
No response
@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.
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.
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.