ubuntu-mate / mate-optimus

NVIDIA Optimus GPU switcher
https://ubuntu-mate.org
GNU General Public License v3.0
93 stars 14 forks source link

mate-optimus-applet crashed with FileNotFoundError in _execute_child(): [Errno 2] No such file or directory: 'prime-supported': 'prime-supported' #8

Closed fossfreedom closed 5 years ago

fossfreedom commented 5 years ago

Apologies if you are already aware -

https://bugs.launchpad.net/ubuntu/+source/mate-optimus/+bug/1843341

So on 19.10 in a VM (i.e. no prime/nvidia etc) there is crash report for every login.

Happy to throw a PR - just shout if you want me to - suggest a try except around Popen type statements. Also maybe use the full path for Popen executables otherwise will open exe's from the path rather than from the system (potential security issue?)