Skip to content

Support RStudio on Wayland #5333

Closed
Closed

Description

@ronblum

Support RStudio on Wayland for Linux desktop environments.

Activity

  1. added this to the v1.4 milestone on Oct 13, 2020
  2. mikebessuille commented on Oct 13, 2020

    @mikebessuille
    Contributor

    This comes "for free" from the update we're doing to QT. However, this will be considered "experimental support" for 1.4

  3. gtritchie commented on Oct 21, 2020

    @gtritchie
    Member

    Due to significant issues we've been hitting with our Qt 5.15 experiments, we're likely not doing this for 1.4 on Linux.

  4. removed this from the v1.4 milestone on Oct 21, 2020
  5. removed their assignment
    on Oct 21, 2020
  6. the42 commented on Nov 22, 2020

    @the42

    Is this issue assumed to be solved by moving away from Qt Webengine to Electron? #8439

  7. mikebessuille commented on Nov 23, 2020

    @mikebessuille
    Contributor

    Wayland should be supported "soon" by Electron: https://www.reddit.com/r/linux/comments/iuerlb/electron_will_support_wayland_soon/
    So yes, moving to Electron will allow us to support Wayland with RStudio.

  8. added this to the v1.5 milestone on Feb 4, 2021
  9. removed this from the 1.5 (Q3 2021) milestone on Apr 14, 2021
  10. 18 remaining items

  11. adamryczkowski commented on Jun 29, 2022

    @adamryczkowski

    It does not work on Ubuntu 22.04:

    $ rstudio 
    TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/etc/rstudio/logging.conf'. Logging to '/home/adam/.local/share/rstudio/log/rdesktop.log'.
    Failed to load client buffer integration: wayland-egl
    
    WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
    qt.qpa.wayland: No shell integration named "xdg-shell" found
    qt.qpa.wayland: No shell integration named "xdg-shell-v6" found
    qt.qpa.wayland: No shell integration named "wl-shell" found
    qt.qpa.wayland: No shell integration named "ivi-shell" found
    qt.qpa.wayland: Loading shell integration failed.
    qt.qpa.wayland: Attempted to load the following shells ("xdg-shell", "xdg-shell-v6", "wl-shell", "ivi-shell")
    qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
    

    I used rstudio-2022.07.0-preview-544-amd64.deb. My system uses Sway wm (https://swaywm.org/).

    Also

    $ rstudio --no-sandbox
    TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/etc/rstudio/logging.conf'. Logging to '/home/adam/.local/share/rstudio/log/rdesktop.log'.
    Failed to load client buffer integration: wayland-egl
    
    WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
    qt.qpa.wayland: No shell integration named "xdg-shell" found
    qt.qpa.wayland: No shell integration named "xdg-shell-v6" found
    qt.qpa.wayland: No shell integration named "wl-shell" found
    qt.qpa.wayland: No shell integration named "ivi-shell" found
    qt.qpa.wayland: Loading shell integration failed.
    qt.qpa.wayland: Attempted to load the following shells ("xdg-shell", "xdg-shell-v6", "wl-shell", "ivi-shell")
    qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
    

    Just for fun, I also tried running it on the discrete NVdia GPU:

    $ optirun rstudio
    TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/etc/rstudio/logging.conf'. Logging to '/home/adam/.local/share/rstudio/log/rdesktop.log'.
    qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
    qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    
    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
    

    I am glad to provide further debugging info.

  12. gtritchie commented on Jun 29, 2022

    @gtritchie
    Member

    @adamryczkowski

    I used rstudio-2022.07.0-preview-544-amd64.deb.

    The messages above suggest you tried the Qt build, which is known not to support Wayland. Do you mind trying the Electron build? It should be considered experimental (it will eventually replace the Qt build, but not until a future release), but is getting close to fully functional.

    Try downloading from https://dailies.rstudio.com/rstudio/spotted-wakerobin/electron/jammy/ (for Ubuntu 22).

  13. adamryczkowski commented on Jun 29, 2022

    @adamryczkowski

    I confirm data-studio seems to be working now. I was able to change the theme and set up a Fira Code font with working ligatures.

  14. mikebessuille commented on Jun 30, 2022

    @mikebessuille
    Contributor

    Thanks for testing!

  15. Bulwagga commented on Oct 16, 2022

    @Bulwagga

    I have the same problem running rstudio on Ubuntu 22.04 with Wayland. The electron build works for me as well. Thank you!

  16. MavropaliasG commented on Jun 5, 2023

    @MavropaliasG

    When can we get the electron build as a flatpack in Linux please?

  17. the42 commented on Jun 5, 2023

    @the42

    Reading https://github.com/rstudio/rstudio/wiki/Electron-Desktop

    RStudio Server/Workbench is used via a web browser pointed at the server; RStudio Desktop is displayed in what is essentially a custom Chromium-based web browser and local server in one. Currently this is built using QtWebEngine (the sources live in src/cpp/desktop).

    The Electron desktop (under development) replaces QtWebEngine with Electron. The sources live in src/node/desktop; it is written primarily in TypeScript.

    So it's not yet there?

  18. gtritchie commented on Jun 5, 2023

    @gtritchie
    Member

    So it's not yet there?

    RStudio Desktop has been using Electron starting with version 2022.12 (and newer). Not sure that's what you were asking, or if you meant Wayland support specifically.

    FYI: RStudio Desktop Pro is still on QtWebEngine but the Electron version should be out this summer.

  19. MavropaliasG commented on Jun 6, 2023

    @MavropaliasG

    So it's not yet there?

    RStudio Desktop has been using Electron starting with version 2022.12 (and newer). Not sure that's what you were asking, or if you meant Wayland support specifically.

    FYI: RStudio Desktop Pro is still on QtWebEngine but the Electron version should be out this summer.

    Is there a flatpak for Linux with the electron version? All I can find in the arch repositories and AUR are Qt builds

  20. the42 commented on Jun 6, 2023

    @the42

    @gtritchie I was specifically referring to Wayland support.

  21. gtritchie commented on Jun 6, 2023

    @gtritchie
    Member

    Yes, RStudio Desktop 2022.12 and newer support Wayland.

    No, we don't produce a flatpack (see #3079 for more on that saga).

    As far as I'm aware, we (Posit) don't have anything to do with the RStudio IDE appearing in any package repositories. At this time the only thing Posit produces are the installable packages you can download from the website. Anything else out there was created by someone else (again, as far as I'm aware, I could be out of date on that knowledge).

  22. GerryT11 commented on Nov 30, 2023

    @GerryT11

    I am running RStudio 2023.09.1 Build 494 on Ubuntu/.deb and noticed that RStudio is not running on Wayland, but rather XWayland. Are there any blocker issues to enable Wayland by default?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions