(09-24-2021, 06:57 PM)kqlnut Wrote: Does Blender already have an icon in the launcher? If so, you will probably find the corresponding .desktop file in /usr/share/applications/. In that file insert setting the variable on the "Exec=" line:
Code:
Exec=env LIBGL_ALWAYS_SOFTWARE=1 blender
If you want to keep this file from being overwritten (e. g. with package updates), you can copy the .desktop file to ~/.local/share/applications/ which will take precedence over the one in /usr/share/applications.
If no .desktop file for blender exists, you have to create a new one.
OR:
Create a 1-line script with your code, make it executable and name something like "blender-code" and place in /usr/local/bin;
Then create your own launcher called "blender.desktop" in ~/.local/share/share/applications with the following lines:
[Desktop Entry]
Name=Blender
Type=Application
Icon=[PATH-TO-YOUR-BLENDER-ICON].png
Exec=/usr/local/bin/blender-code
Categories=Utility;
Reboot, and check to see if the blender icon is now visible on the desktop. If so, click it to launch blender...