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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Menu bar is missing on Windows with absolute tauri.config.windows.url #4131

Closed
DarrenDanielDay opened this issue May 15, 2022 · 0 comments
Assignees

Comments

@DarrenDanielDay
Copy link

Describe the bug

The menu bar is missing when tauri.config.windows.url is an absolute URL.

Reproduction

A complete example to reproduce can be found here 馃憟.

  1. Install dependencies and run yarn tauri dev with the example.
  2. The menu bar is missing.

Expected behavior

The menu bar appears at the top of app with config tauri.config.windows.url set to custom absolute URL (especially local server URL).

Platform and versions

Environment
  鈥 OS: Windows 10.0.19044 X64
  鈥 Webview2: 101.0.1210.39
  鈥 MSVC:
      - Visual Studio Community 2022
  鈥 Node.js: 16.13.1
  鈥 npm: 8.9.0
  鈥 pnpm: 7.0.1
  鈥 yarn: 1.22.10
  鈥 rustup: 1.24.3
  鈥 rustc: 1.60.0
  鈥 cargo: 1.60.0
  鈥 Rust toolchain: stable-x86_64-pc-windows-msvc

Packages
  鈥 @tauri-apps/cli [NPM]: 1.0.0-rc.10
  鈥 @tauri-apps/api [NPM]: 1.0.0-rc.5
  鈥 tauri [RUST]: 1.0.0-rc.10,
  鈥 tauri-build [RUST]: 1.0.0-rc.8,
  鈥 tao [RUST]: 0.8.4,
  鈥 wry [RUST]: 0.16.2,

App
  鈥 build-type: bundle
  鈥 CSP: unset
  鈥 distDir: ../dist
  鈥 devPath: ../dist

App directory structure
  鈹溾攢 .git
  鈹溾攢 dist
  鈹溾攢 node_modules
  鈹斺攢 src-tauri

Stack trace

No error stack trace.

Additional context

In my case, I have an existing Angular project and I want to build a tauri desktop app for a trial. But the project depends on a lot of backend APIs with http protocol (not https) to work, which resulted in "Mixed Content" errors in release mode (tauri's https://tauri.localhost by default, ref #3007). So I tried to use tauri-plugin-localhost to start a local http server on port 4200, serving the front end build. Then I changed tauri.config.windows.url in tauri.conf.json to http://localhost:4200. It worked, but I also got to this issue, that the menu bar disappeared unexpectedly. I'm also looking for other solutions for my case (instead of starting an local http server to avoid "Mixed Content" errors).

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

No branches or pull requests

2 participants