"page.window.visible = True" doesn't work in Linux
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 17k
- Forks
- 694
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 33
Description
Duplicate Check
- I have searched the opened issues and there are no duplicates
Describe the bug
When I use page.window.visible = False the page is hidden, but after using page.window.visible = True it doesn't reappear, although the code still runs normally. Not even using page.window.maximized, the page won't be visible anyway. In Windows it works well, but i have tried in Ubuntu, Fedora and Mint, and it never works. There are no error messages
Code sample
Logs
from time import sleep
import flet as ft
def main(page: ft.Page):
page.add(ft.Text("Hello!"))
sleep(3)
page.window.visible = True
page.update()
ft.app(target=main, view=ft.AppView.FLET_APP_HIDDEN)
To reproduce
When running any code with page.window.visible = True the window won't appear, but there's no any error message
Expected behavior
No response
Screenshots / Videos
Screenshots / Video demonstration
[Upload media here]
Operating System
Linux
Operating system details
Linux Mint 21
Flet version
0.23.2
Regression
No, it isn't
Suggestions
No response
Logs
Logs
[Paste your logs here]
Additional details
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the provided Python example on Linux Mint, Ubuntu, or Fedora with ft.AppView.FLET_APP_HIDDEN and tracing page.window.visible before and after page.update(). Compare the Linux behavior with Windows and inspect the desktop window-visibility entry point. Done means a hidden window reliably reappears on Linux without errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, python
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100