if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

if [ -x /usr/bin/update-mime-database ]; then
  /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi

if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
  if [ -x /usr/bin/gtk-update-icon-cache ]; then
    /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
  fi
fi
( cd usr/bin ; rm -rf rstudio )
( cd usr/bin ; ln -sf /usr/lib/rstudio/bin/rstudio rstudio )
( cd usr/lib/rstudio/bin ; rm -rf libQt5Core.so.5 )
( cd usr/lib/rstudio/bin ; ln -sf libQt5Core.so.5.4.0 libQt5Core.so.5 )
( cd usr/lib/rstudio/bin ; rm -rf libQt5DBus.so.5 )
( cd usr/lib/rstudio/bin ; ln -sf libQt5DBus.so.5.4.0 libQt5DBus.so.5 )
( cd usr/lib/rstudio/bin ; rm -rf libQt5Gui.so.5 )
( cd usr/lib/rstudio/bin ; ln -sf libQt5Gui.so.5.4.0 libQt5Gui.so.5 )
( cd usr/lib/rstudio/bin ; rm -rf libQt5Network.so.5 )
( cd usr/lib/rstudio/bin ; ln -sf libQt5Network.so.5.4.0 libQt5Network.so.5 )
( cd usr/lib/rstudio/bin ; rm -rf libQt5OpenGL.so.5 )
( cd usr/lib/rstudio/bin ; ln -sf libQt5OpenGL.so.5.4.0 libQt5OpenGL.so.5 )
( cd usr/lib/rstudio/bin ; rm -rf libQt5Positioning.so.5 )
( cd usr/lib/rstudio/bin ; ln -sf libQt5Positioning.so.5.4.0 libQt5Positioning.so.5 )
( cd usr/lib/rstudio/bin ; rm -rf libQt5PrintSupport.so.5 )
( cd usr/lib/rstudio/bin ; ln -sf libQt5PrintSupport.so.5.4.0 libQt5PrintSupport.so.5 )
( cd usr/lib/rstudio/bin ; rm -rf libQt5Qml.so.5 )
( cd usr/lib/rstudio/bin ; ln -sf libQt5Qml.so.5.4.0 libQt5Qml.so.5 )
( cd usr/lib/rstudio/bin ; rm -rf libQt5Quick.so.5 )
( cd usr/lib/rstudio/bin ; ln -sf libQt5Quick.so.5.4.0 libQt5Quick.so.5 )
( cd usr/lib/rstudio/bin ; rm -rf libQt5Sensors.so.5 )
( cd usr/lib/rstudio/bin ; ln -sf libQt5Sensors.so.5.4.0 libQt5Sensors.so.5 )
( cd usr/lib/rstudio/bin ; rm -rf libQt5Sql.so.5 )
( cd usr/lib/rstudio/bin ; ln -sf libQt5Sql.so.5.4.0 libQt5Sql.so.5 )
( cd usr/lib/rstudio/bin ; rm -rf libQt5Svg.so.5 )
( cd usr/lib/rstudio/bin ; ln -sf libQt5Svg.so.5.4.0 libQt5Svg.so.5 )
( cd usr/lib/rstudio/bin ; rm -rf libQt5WebChannel.so.5 )
( cd usr/lib/rstudio/bin ; ln -sf libQt5WebChannel.so.5.4.0 libQt5WebChannel.so.5 )
( cd usr/lib/rstudio/bin ; rm -rf libQt5WebKit.so.5 )
( cd usr/lib/rstudio/bin ; ln -sf libQt5WebKit.so.5.4.0 libQt5WebKit.so.5 )
( cd usr/lib/rstudio/bin ; rm -rf libQt5WebKitWidgets.so.5 )
( cd usr/lib/rstudio/bin ; ln -sf libQt5WebKitWidgets.so.5.4.0 libQt5WebKitWidgets.so.5 )
( cd usr/lib/rstudio/bin ; rm -rf libQt5Widgets.so.5 )
( cd usr/lib/rstudio/bin ; ln -sf libQt5Widgets.so.5.4.0 libQt5Widgets.so.5 )
( cd usr/lib/rstudio/bin ; rm -rf libQt5Xml.so.5 )
( cd usr/lib/rstudio/bin ; ln -sf libQt5Xml.so.5.4.0 libQt5Xml.so.5 )
( cd usr/lib/rstudio/bin ; rm -rf libQt5XmlPatterns.so.5 )
( cd usr/lib/rstudio/bin ; ln -sf libQt5XmlPatterns.so.5.4.0 libQt5XmlPatterns.so.5 )
( cd usr/lib/rstudio/bin ; rm -rf libicudata.so.53 )
( cd usr/lib/rstudio/bin ; ln -sf libicudata.so.53.1 libicudata.so.53 )
( cd usr/lib/rstudio/bin ; rm -rf libicui18n.so.53 )
( cd usr/lib/rstudio/bin ; ln -sf libicui18n.so.53.1 libicui18n.so.53 )
( cd usr/lib/rstudio/bin ; rm -rf libicuuc.so.53 )
( cd usr/lib/rstudio/bin ; ln -sf libicuuc.so.53.1 libicuuc.so.53 )
