You need to export the variable to the environment of gnome-session, which does not read .bashrc. Try setting it within /etc/X11/Xsession.d instead.
You need to export the variable to the environment of gnome-session, which does not read .bashrc. Try setting it within /etc/X11/Xsession.d instead.