Witko / nvidia-xrun

Utility to run separate X with discrete nvidia graphics with full performance
GNU General Public License v2.0
488 stars 69 forks source link

LD_LIBRARY_PATH containing /usr/lib stopping RStudio from launching #131

Open eigenraven opened 5 years ago

eigenraven commented 5 years ago

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?

achea commented 4 years ago

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