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 libvdpau_nvidia.so )
( cd usr/lib64 ; ln -sf libvdpau_nvidia.so.352.63 libvdpau_nvidia.so )
( cd usr/lib64 ; rm -rf libnvcuvid.so )
( cd usr/lib64 ; ln -sf libnvcuvid.so.1 libnvcuvid.so )
( cd usr/lib64 ; rm -rf libOpenCL.so.1.0 )
( cd usr/lib64 ; ln -sf libOpenCL.so.1.0.0 libOpenCL.so.1.0 )
( cd usr/lib64 ; rm -rf libOpenCL.so.1 )
( cd usr/lib64 ; ln -sf libOpenCL.so.1.0 libOpenCL.so.1 )
( cd usr/lib64 ; rm -rf libOpenCL.so )
( cd usr/lib64 ; ln -sf libOpenCL.so.1 libOpenCL.so )
( cd usr/lib64 ; rm -rf libnvidia-tls.so.352.63 )
( cd usr/lib64 ; ln -sf tls/libnvidia-tls.so.352.63 libnvidia-tls.so.352.63 )
( cd usr/lib64 ; rm -rf libnvcuvid.so.1 )
( cd usr/lib64 ; ln -sf libnvcuvid.so.352.63 libnvcuvid.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.352.63 libnvidia-cfg.so.1 )
( cd usr/lib64 ; rm -rf libcuda.so.1 )
( cd usr/lib64 ; ln -sf libcuda.so.352.63 libcuda.so.1 )
( cd usr/lib64 ; rm -rf libcuda.so )
( cd usr/lib64 ; ln -sf libcuda.so.1 libcuda.so )
