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

[MacOS] Shows windows controls on macos when platform is not specified #13

Open
Blakeinstein opened this issue Aug 23, 2023 · 2 comments

Comments

@Blakeinstein
Copy link

I was trying to debug why Windows controls were showing up on my project, but trying to run the SolidJS example yields similar results. As seen in the image, the first title bar, which, as per the code, should auto-detect the platform <WindowTitlebar class="border">content</WindowTitlebar> , detects the platform as windows.

image

I am on an M1 Pro Macbook.

Additionally, in my own project, I also get an error regarding a 400 error from the OS plugin. Note: I have the exact same cargo.toml, tauri.conf.json, and package.json versions for the dependencies.

image

Checking tauri-plugin-os, the rust code has no kind handler...

@agmmnn
Copy link
Owner

agmmnn commented Sep 9, 2023

Thanks for the issue. Releated to #14

@Th3Whit3Wolf
Copy link

I had the same probably but it was caused by the platform being undefined. I fixed this by adding this to src-tauri/capabilities/default.json

"os:allow-arch",
"os:allow-hostname",
"os:allow-os-type",

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

3 participants