Skip to content

Tk 8.6 + XWayland + Wayfire = XWayland session corruption #139740

@oldschoolcowboy

Description

@oldschoolcowboy

Bug report

Bug description:

# Add a code block here, if required

i apologies if this is the incorrect location for this; the solution to the problem is below;

Section 1: Problem Statement

Tk 8.6 + XWayland + Wayfire = XWayland session corruption
IDLE3 works once per session, fails on subsequent launches
Symptoms: black window, no frame, no interaction

Section 2: Workaround (Tk 8.6)

Desktop file modification: kill XWayland before launch
Working solution but requires XWayland restart overhead

Section 3: Proper Solution (Tk 9.0)

Native Wayland support via --enable-wayland
Eliminates XWayland dependency entirely
No session corruption possible
Clean, maintainable, future-proof

Section 4: Build Instructions

Prerequisites: wayland, wayland-protocols, libxkbcommon
Tcl 9.0 build
Tk 9.0 build with --enable-wayland

currently on Linux Fedora 42 in a Wayland; Wayfire; wf-shell; wf-panel; environment with GDM disabled;

this solves the current problem; Exec=sh -c 'killall Xwayland 2>/dev/null; sleep 0.5; python3 -m idlelib' %F

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    pendingThe issue will be closed if no feedback is providedtopic-tkintertype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions