Bumblebee-Project/bumblebeed — Issue #11: ldpath autodetect
Author: Thulinma
Created: 2011-12-28 12:50:32+00:00
State: open

As the ldpath is only needed when not using nouveau, and the path may differ across distros, I suggest the following changes:

* Only set the ld path when not using nouveau.
* On start, attempt to autodetect ld path(s), if not set in config AND not using nouveau by checking:
/usr/lib/nvidia-current
/usr/lib64/nvidia-current
/usr/lib32/nvidia-current
/usr/lib/nvidia
/usr/lib64/nvidia
/usr/lib32/nvidia
/usr/lib/nvidia-bumblebee
/usr/lib64/nvidia-bumblebee
/usr/lib32/nvidia-bumblebee
Then concatenate the ones that contain files into the used ldpath.

This should provide out-of-the-box compatibility for most distros, I think.

Thoughts?