if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications >/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

if [ -x /usr/bin/fc-cache ]; then
  /usr/bin/fc-cache -f usr/share/fonts/TTF
fi

[ -x /sbin/setcap ] && /sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/guitarix
( cd usr/lib64 ; rm -rf libgxwmm.so.0 )
( cd usr/lib64 ; ln -sf libgxwmm.so.0.1 libgxwmm.so.0 )
( cd usr/lib64 ; rm -rf libgxw.so )
( cd usr/lib64 ; ln -sf libgxw.so.0.1 libgxw.so )
( cd usr/lib64 ; rm -rf libgxw.so.0 )
( cd usr/lib64 ; ln -sf libgxw.so.0.1 libgxw.so.0 )
