In added this to my NixOS flake running on WSL-2. It looks like I needed to add "--enable-unsafe-swiftshader" based on the errors messages I got when I started claude-desktop without that flag.
Running:
claude-desktop --enable-unsafe-swiftshader
I get
LaunchProcess: failed to execvp:
xdg-settings
getWindowArguments []
App is not installed, not enabling auto-updates
(node:5315) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 destroyed listeners added to [WebContents]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(Use `electron --trace-warnings ...` to show where the warning was created)
[5352:0601/173221.554921:ERROR:viz_main_impl.cc(185)] Exiting GPU process due to errors during initialization
[5443:0601/173221.642697:ERROR:viz_main_impl.cc(185)] Exiting GPU process due to errors during initialization
[5491:0601/173221.724736:ERROR:viz_main_impl.cc(185)] Exiting GPU process due to errors during initialization
[5369:0601/173221.775952:ERROR:command_buffer_proxy_impl.cc(331)] GPU state invalid after WaitForGetOffsetInRange.
In added this to my NixOS flake running on WSL-2. It looks like I needed to add "--enable-unsafe-swiftshader" based on the errors messages I got when I started claude-desktop without that flag.
Running:
claude-desktop --enable-unsafe-swiftshaderI get