nvidia-xrun icon indicating copy to clipboard operation
nvidia-xrun copied to clipboard

LD_LIBRARY_PATH containing /usr/lib stopping RStudio from launching

Open eigenraven opened this issue 5 years ago • 1 comments

https://github.com/Witko/nvidia-xrun/blob/af3b7349b322169f5e57ce30da760e50d94644cc/nvidia-xinitrc#L27 This line, specifically adding /usr/lib to LD_LIBRARY_PATH causes RStudio to fail on start (Archlinux x86_64), because it bundles its own Qt5 library and this override causes the system library path to take precedence over the locally defined QT_DIR in the rstudio-bin launch script.

I'm reporting this here, because /usr/lib is a standard library path and I don't see why it'd be necessary to add it to LD_LIBRARY_PATH which takes precedence over standard library search procedure.

Would it be possible to just remove /usr/lib from this line and just leave the nvidia library directories there?

eigenraven avatar Jul 30 '19 09:07 eigenraven

I also had this strange issue with Nix sandboxes and removing /usr/lib from the LD_LIBRARY_PATH worked.

achea avatar Mar 02 '20 20:03 achea