-
-
Notifications
You must be signed in to change notification settings - Fork 314
Description
Is this a new feature request?
- I have searched the existing issues
Wanted change
I would like to request a feature or documentation for properly auto-starting GUI applications (specifically Python scripts using Tkinter) when Webtop starts.
Reason for change
Currently, it's very difficult to reliably auto-start GUI applications that require X11/display server to be fully initialized. Standard Linux methods don't work properly:
~/.bashrc: Executes before the display server is ready, causing Tkinter applications to fail with display errors- Systemd services: Same issue - services start before X11 is available
~/.config/autostart/*.desktop: Inconsistent behavior, sometimes the display isn't fully ready even with this method- Sleep delays in scripts: Unreliable and creates race conditions
Use Case
When opening Webtop in the browser, I want to automatically launch a Python application using Tkinter (or any other GUI framework) that should be ready for the user immediately upon connection.
This is useful for:
- Kiosk-mode applications
- Educational environments
- Development environments with specific tools
- Custom dashboards or monitoring tools
Additional Context
I've tried various workarounds including sleep delays, checking for X11 sockets, and XFCE autostart, but none are reliable across restarts or different configurations.
Proposed code change
One or more of the following would help:
-
Environment variable: Provide a
WEBTOP_DISPLAY_READYmarker or similar that scripts can check -
Built-in delay mechanism: A configuration option in
docker-compose.ymlto specify GUI autostart scripts with built-in proper timing:environment: - GUI_AUTOSTART=/path/to/script.py
-
Documentation: Clear documentation on the recommended way to auto-start GUI applications, including:
- Timing considerations
- How to properly wait for X11
Metadata
Metadata
Assignees
Labels
Type
Projects
Status