if [ -x /usr/bin/update-desktop-database ]; then
  ./usr/bin/update-desktop-database -q usr/share/applications
fi

/usr/sbin/nvidia-switch --install

( cd usr/lib64 ; rm -rf libXvMCNVIDIA_dynamic.so.1 )
( cd usr/lib64 ; ln -sf libXvMCNVIDIA.so.96.43.23 libXvMCNVIDIA_dynamic.so.1 )
( cd usr/lib64/tls ; rm -rf libnvidia-tls.so.1 )
( cd usr/lib64/tls ; ln -sf libnvidia-tls.so.96.43.23 libnvidia-tls.so.1 )
( cd usr/lib64 ; rm -rf libnvidia-tls.so.1 )
( cd usr/lib64 ; ln -sf tls/libnvidia-tls.so.96.43.23 libnvidia-tls.so.1 )
( cd usr/lib64 ; rm -rf libnvidia-cfg.so )
( cd usr/lib64 ; ln -sf libnvidia-cfg.so.1 libnvidia-cfg.so )
( cd usr/lib64 ; rm -rf libnvidia-cfg.so.1 )
( cd usr/lib64 ; ln -sf libnvidia-cfg.so.96.43.23 libnvidia-cfg.so.1 )
( cd usr/lib64/xorg/modules ; rm -rf libnvidia-wfb.so.1 )
( cd usr/lib64/xorg/modules ; ln -sf libnvidia-wfb.so.96.43.23 libnvidia-wfb.so.1 )
