Only adjust X11 settings if the configuration file exists.
Avoids a scary stderr message when installing the RPM.
@@ -35,7 +35,10 @@ make
%post
ldconfig
+
+if [ -f /etc/X11/Xsession.options ]; then
grep -Fxq "use-oidc-agent" /etc/X11/Xsession.options || echo "use-oidc-agent" >> /etc/X11/Xsession.options
+fi
%postun
ldconfig
