Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change command execution to start instead of output #448

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

FahimAdib
Copy link
Contributor

Addresses the issue mentioned in: #364

Issue
The program was freezing when attempting to launch an application using the exec.Command function. This was due to the use of cmd.Output(), which waits for the command to complete and captures its output. If the launched application does not terminate, the program would hang indefinitely.

Solution
To resolve this issue, the code was modified to use cmd.Start() instead of cmd.Output(). The cmd.Start() function starts the specified command but does not wait for it to complete, allowing the program to continue running without freezing.

Copy link

netlify bot commented Nov 10, 2024

Deploy Preview for superfile canceled.

Name Link
🔨 Latest commit 1c3378f
🔍 Latest deploy log https://app.netlify.com/sites/superfile/deploys/672ffea2b2d90c0008f22e34

@yorukot yorukot merged commit 2aafcd7 into yorukot:main Nov 11, 2024
4 checks passed
@yorukot
Copy link
Owner

yorukot commented Nov 11, 2024

Thank you so much, this is a great update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants