You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rstudio won't open correctly when built using nix-shell as part of pkgs.rstudioWrapper.override on the master branch.
Starting rstudio returns the following error:
$ rstudio
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Aborted
However, when the same .nix file is passed to nix-build, the application starts as expected.
It appears that when built with nix-shell, the environment variables are not being set correctly:
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
Search for maintainers and people that previously touched the related code and @ mention them in a comment.
Issue description
rstudio
won't open correctly when built usingnix-shell
as part ofpkgs.rstudioWrapper.override
on the master branch.Starting
rstudio
returns the following error:However, when the same
.nix
file is passed tonix-build
, the application starts as expected.It appears that when built with
nix-shell
, the environment variables are not being set correctly:But they are being set correctly when built with
nix-build
:According to the Nixpkgs documentation, using
nix-shell
with therstudioWrapper
should work correctly.Using the stable version of Nixpkgs, both
nix-shell
andnix-build
allow RStudio to start correctly.Steps to reproduce
Use the example
shell.nix
from the Nixpkgs RStudio documentation withnix-shell
on the master branch of Nixpkgs:Technical details
"x86_64-linux"
Linux 4.14.94, NixOS, 18.09.1972.5d9024da9b9 (Jellyfish)
yes
yes
nix-env (Nix) 2.1.3
/nix/var/nix/profiles/per-user/root/channels/nixos
The text was updated successfully, but these errors were encountered: