Skip to content

Linux X11 launcher over-scales UI on fractional-scale Hyprland #10

@dvic

Description

@dvic

After updating the Linux package from 26.429.20946 to 26.429.30905, the Codex desktop UI appears noticeably larger on Hyprland with fractional display scaling.

This seems related to commit a5b9693, which changed the Linux desktop launcher from:

Exec=<%= name %> %u

to:

Exec=/usr/bin/env ELECTRON_OZONE_PLATFORM_HINT=x11 <%= name %> --ozone-platform=x11 %u

My setup:

Hyprland / Wayland
3840x2160 displays
scale = 1.50
GDK_SCALE = 2

With the new forced X11/Xwayland launcher, fonts and UI elements render larger than before. As a local packaging workaround, I patched the installed desktop entry back to the previous launcher behavior:

Exec=codex-desktop %u

That fixed the oversized UI on my machine.

I understand the X11 launcher contract may have been added for Linux pet overlay behavior, so this may not be a straightforward revert. The main question is whether Linux can support a fractional-scaling-friendly launch path while preserving the pet overlay fixes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions