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

[bug] fullscreen true in tauri.conf.json does not work on Ubuntu #3738

Closed
pwespi opened this issue Mar 19, 2022 · 3 comments
Closed

[bug] fullscreen true in tauri.conf.json does not work on Ubuntu #3738

pwespi opened this issue Mar 19, 2022 · 3 comments

Comments

@pwespi
Copy link
Contributor

pwespi commented Mar 19, 2022

Describe the bug

I created a new app with npx create-tauri-app and only changed fullscreen to true in tauri.conf.json. The app opens in fullscreen on Windows and macOS, but it does not open in fullscreen on Ubuntu.

Reproduction

  1. npx create-tauri-app
  2. change fullscreen to true in tauri.conf.json
  3. npm run tauri dev
  4. app opens in normal window

Expected behavior

App should open in fullscreen window.

Platform and versions

Operating System - Ubuntu, version 20.04 X64

Node.js environment
  Node.js - 16.14.2
  @tauri-apps/cli - 1.0.0-rc.6 (outdated, latest: 1.0.0-rc.7)
  @tauri-apps/api - 1.0.0-rc.2

Global packages
  npm - 8.5.0
  pnpm - Not installed
  yarn - Not installed

Rust environment
  rustup - 1.24.3
  rustc - 1.59.0
  cargo - 1.59.0
  toolchain - stable-x86_64-unknown-linux-gnu 

App directory structure
/src-tauri
/public
/node_modules
/.vscode
/dist
/.git
/src

App
  tauri - 1.0.0-rc.4
  tauri-build - 1.0.0-rc.4
  tao - 0.6.4
  wry - 0.13.3
  build-type - bundle
  CSP - unset
  distDir - ../dist
  devPath - http://localhost:3000/
  framework - Svelte

Stack trace

No response

Additional context

$ echo $XDG_SESSION_TYPE
x11

Edit:

  • I also tested with wayland and it's the same, the app does not open in fullscreen.
  • Using setFullscreen(true) of the tauri JS window API works as expected.
@joshhansen
Copy link

I'm getting this, on Fedora 35

@lucasfernog
Copy link
Member

This is a tao issue, the patch is here: tauri-apps/tao#348
It will be part of the next release. Thanks for the report!

@meridbt
Copy link

meridbt commented Mar 26, 2023

Hi, @pwespi
I'm facing the same issue on Lubuntu 22.04.2

I've tried the workaround with appWindow you mention, but it doesn't help.
Could you please suggest?

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

4 participants