Skip to content

Scripting API: version() does not indicate windowing system / display server #3478

@Chealer

Description

@Chealer

Several CopyQ bugs/issues on GNU + Linux/BSD depend on the windowing system/platform. Unfortunately, it can take time to get information on the display server used, because while the bug reporting template suggests copy(version()), version() does not indicate the platform.

For example, the initial body of ticket #3416 did not include that information.

Describe the solution you'd like
It would be good if, when running on GNU OSs, a line indicating the windowing system like KInfoCenter’s “Graphics Platform” would be added to version(). Ideally, this would be fed by QSysInfo, but this would apparently need an upstream change as I don't see any member providing that.

Describe alternatives you've considered
To avoid blocking on Qt, we could steal KInfoCenter’s code/algorithm, which is freely licensed C++. It is fairly simple, although a little hacky/fragile. Perhaps QWaylandCompositor could be used to replace the Wayland case.

Even better than just the system/platform would be to indicate the display server (for example X.org, KWin or Mutter).

Additional context
Obviously, such information does not belong in a “version string”, but I guess it is time to acknowledge that version() no longer returns just the version. The specification could be adapted, and perhaps the function can even be renamed something like getDiagnosticInfo().

License This report (including all messages and attachments I add to it) is offered under the terms of CC0 1.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions