After installing nvidia drivers gnome refuses to open terminal/settings/gnome apps when launched.
Setting DRI_PRIME=1 in /etc/environment fixes this, but then they launch on the dedicated nvidia GPU instead of the AMD iGPU.
Firefox also then runs on CPU acceleration instead of hardware. Launching firefox with DRI_PRIME=pci-0000_6b_00_0 forces it to use the iGPU.
But I want any apps to open on the iGPU by default. I only want the nvidia GPU used when specifically called upon.
Removing DRI_RPIME=1 and replacing it with DRI_RPIME=pci-0000_6b_00_0 forces firefox to launch in the iGPU, but the same issue happens with gnome again - gnome apps will not launch.
Does anyone know how to fix this?