beetlebug

Limits on Linux

These parts of Tk and ztk do not work on Linux, or work in a smaller form. Each item names what to use in its place, where a replacement exists.

Commands

  • ztk::recent gives an error on Linux. ztk::has recent gives 0.
  • ztk::hotkey gives an error on X11. On Wayland, the desktop decides the keys of a shortcut (Global shortcuts).
  • ztk::taskbar shows its state only in a dock that reads the Unity launcher API. On X11 it keeps the state and shows nothing.
  • The desktop gets no notification from ztk. ztk::toast shows a short message at the bottom of the window.
  • tk_messageBox, tk_chooseColor, and tk fontchooser show the dialogs that ztk draws, with the same look on each desktop.
  • wm attributes -topmost keeps its value on Wayland and does not change the window.
  • On GNOME and weston, the title bar that ztk draws has no shadow and no round corners.

The look

  • On X11, and on a desktop with no Settings portal, the window does not follow the dark mode or the accent color of the desktop. Use ztk --dark.
  • ztk draws an installed font only when it has TrueType outlines and no variations. A family of CFF fonts (as in many .otf files) or of variable fonts selects Inter. Install the TrueType files of the family, or use a family of TrueType fonts (Text and fonts).
  • ztk reads no configuration of fontconfig: an alias such as Helvetica for Liberation Sans has no effect. Name the installed family.
  • The menus do not show the -image of an entry.

X11

The X11 client has no menus outside the window, no input method, no drags, no tray, and no file dialog of the desktop. It reads Xft.dpi at the start, and a change of Xft.dpi applies at the next start of the app. Use a Wayland session for these parts.

The direct backend

--direct needs --direct-unsafe-test-device, because the backend does not take full control of the virtual terminal: it sets no keyboard mode and does not handle a switch of the terminal. It has one window, the CPU renderer, and the keys of the US layout.

Accessibility

On Wayland a screen reader such as Orca reads the widgets of each window (Screen readers). It cannot edit the text of an entry or move a scale, and the place of a widget is in the coordinates of its window, because Wayland gives no place of a window on the screen. On X11 a screen reader does not see the widgets.

The macOS section has the native backend of the Mac, and the Windows section has the backend of Windows.