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

FyneApp.toml not loaded with GOTMPDIR set and running go run #5017

Open
2 tasks done
mondy opened this issue Jul 23, 2024 · 0 comments
Open
2 tasks done

FyneApp.toml not loaded with GOTMPDIR set and running go run #5017

mondy opened this issue Jul 23, 2024 · 0 comments
Labels
unverified A bug that has been reported but not verified

Comments

@mondy
Copy link

mondy commented Jul 23, 2024

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

FyneApp.toml not loaded when running with go run when GOTMPDIR env is set.

How to reproduce

  1. Create FyneApp.toml and code to output metadata.
  2. Set GOTMPDIR and run go run.
  3. Contents of FyneApp.toml are not output.

Screenshots

No response

Example code

FyneApp.toml

[Details]
Name = "abc"

main.go

package main

import (
	"fmt"

	"fyne.io/fyne/v2/app"
)

func main() {
	a := app.New()
	fmt.Println(a.Metadata().Name)
	a.Run()
}

Fyne version

2.5.0

Go compiler version

1.22.5

Operating system and version

Windows10

Additional Information

There is probably a problem with the getProjectPath function in app/meta_development.go.
I think you need to refer to GOTMPDIR env.

@mondy mondy added the unverified A bug that has been reported but not verified label Jul 23, 2024
@andydotxyz andydotxyz changed the title FyneApp.toml not loaded when running with go run FyneApp.toml not loaded with GOTMPDIR set and running go run Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unverified A bug that has been reported but not verified
Projects
None yet
Development

No branches or pull requests

1 participant