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

Files don't open on windows when called externally (but don't error either) #33

Open
mikeparker opened this issue Jul 31, 2022 · 0 comments

Comments

@mikeparker
Copy link

I've written some very simple code to just open a text file

	err = open.Run("C:/test.txt")
	if err != nil {
		return err
	}

When I run this executable from the command line, it works fine. When I run another executable which then runs this executable, the code no longer works, but there is no error.

The weird thing is that when mypath is a directory, windows will happily open file explorer at that directory, even when being called from another executable:

	err = open.Run("C:/")
	if err != nil {
		return err
	}

^ This works fine. But any file will not.

If there's some permissions issue going on that's fine but shouldn't this return an error if it's not able to complete?
Any insight into what's going on here would be welcomed too.

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

No branches or pull requests

1 participant