question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nightly does not work with ozone (wayland native)

See original GitHub issue

Steps to reproduce

Stable supports running in wayland native like this: element-desktop --enable-features=UseOzonePlatform --ozone-platform=wayland. Doing the same with element-desktop-nightly apparently does not. Maybe because bundles its own electron (assumption based on no dependency in the pkg)?

This is on sway 1.6.1.

What happened?

What did you expect?

element works as usual

What happened?

no window, only the indicator icon appears.

Operating system

arch

Application version

Element Nightly version: 2021090301 Olm version: 3.2.3

How did you install the app?

aur/element-desktop-nightly-bin

Homeserver

own

Have you submitted a rageshake?

No

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
SimonBrandnercommented, Sep 10, 2021

Ah, great thanks for the explanation! Let’s assume this is fixed now. Let me know if you ever see this again

0reactions
HarHarLinkscommented, Sep 13, 2021

It does seem to work in principle now. I’m noticing a last small problem: when running with ozone, the window_properties field is missing. This contains a bunch of meta info to identify the program and is commonly used to e.g. assign apps to fixed workspaces. Consequently my condition that moves windows with class beginning in Element to a certain workspace. get_tree with ozone:

            {
              "id": 23,
              "type": "con",
              "orientation": "none",
              "percent": 1.0,
              "urgent": false,
              "marks": [
              ],
              "focused": false,
              "layout": "none",
              "border": "normal",
              "current_border_width": 2,
              "rect": {
                "x": 0,
                "y": 415,
                "width": 1920,
                "height": 1025
              },
              "deco_rect": {
                "x": 0,
                "y": 0,
                "width": 1920,
                "height": 25
              },
              "window_rect": {
                "x": 0,
                "y": 0,
                "width": 1920,
                "height": 1025
              },
              "geometry": {
                "x": 0,
                "y": 0,
                "width": 1024,
                "height": 768
              },
              "name": "Element Nightly [1] | Room Name",
              "window": null,
              "nodes": [
              ],
              "floating_nodes": [
              ],
              "focus": [
              ],
              "fullscreen_mode": 0,
              "sticky": false,
              "pid": 4509,
              "app_id": "Element-Nightly",
              "visible": true,
              "max_render_time": 0,
              "shell": "xdg_shell",
              "inhibit_idle": false,
              "idle_inhibitors": {
                "user": "none",
                "application": "none"
              }
            }

with Xwayland:

            {
                  "id": 27,
                  "type": "con",
                  "orientation": "none",
                  "percent": 1.0,
                  "urgent": false,
                  "marks": [
                  ],
                  "focused": false,
                  "layout": "none",
                  "border": "normal",
                  "current_border_width": 2,
                  "rect": {
                    "x": 0,
                    "y": 415,
                    "width": 1920,
                    "height": 1025
                  },
                  "deco_rect": {
                    "x": 0,
                    "y": 0,
                    "width": 1920,
                    "height": 25
                  },
                  "window_rect": {
                    "x": 0,
                    "y": 0,
                    "width": 1920,
                    "height": 1025
                  },
                  "geometry": {
                    "x": 0,
                    "y": 0,
                    "width": 1024,
                    "height": 768
                  },
                  "name": "Element Nightly [1] | Room Name",
                  "window": 23068673,
                  "nodes": [
                  ],
                  "floating_nodes": [
                  ],
                  "focus": [
                  ],
                  "fullscreen_mode": 0,
                  "sticky": false,
                  "pid": 7935,
                  "app_id": null,
                  "visible": true,
                  "max_render_time": 0,
                  "shell": "xwayland",
                  "inhibit_idle": false,
                  "idle_inhibitors": {
                    "user": "none",
                    "application": "none"
                  },
                  "window_properties": {
                    "class": "Element-Nightly",
                    "instance": "element-nightly",
                    "title": "Element Nightly [1] | Room Name",
                    "transient_for": null,
                    "window_role": "browser-window",
                    "window_type": "normal"
                  }
                }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Element doesn't work well with native Wayland #18943 - GitHub
I've just tried running Element in native Wayland mode ( --enable-features=UseOzonePlatform --ozone-platform=wayland ) and it seems that currently breaks ...
Read more >
Force all apps to use native Wayland : r/Fedora - Reddit
This causes many apps that run on xwayland to be blurry. Is there a way to force every app (most are electron/chromium apps)...
Read more >
578890 - [ozone/wayland] Ozone platform for Wayland.
Issue 578890: [ozone/wayland] Ozone platform for Wayland.​​ We can support running chromium on wayland natively by adding a new platform //ui/ozone/platform/ ...
Read more >
Chromium - ArchWiki
By default Chromium on Linux does not use any GPU acceleration. ... does not work with the chromium package when using the native...
Read more >
Native Wayland Support – Discord
Since Chromium/Electron are starting to get closer to native Wayland ... Discord to run on Wayland no problem using the Ozone build of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found