File zoom-cleanup of Package kimi-utils-ubuntu
#!/bin/bash
# Source: https://www.linuxquestions.org/questions/slackware-14/zoom-linux-5-17-5-won%27t-start-4175733126/
#
# On linux, updating from
# Zoom v5.17.1
# to
# Zoom v5.17.5
# can cause a system crash due to memory leak. The Zoom window never opens.
#
# Solution:
# Perform Zoom user cleanup:
echo "To prevent Zoom v5.17.5 (or later) from crashing your computer"
echo "user settings in ${HOME} has to be cleaned up."
echo
echo "Source:"
echo "https://www.linuxquestions.org/questions/slackware-14/zoom-linux-5-17-5-won%27t-start-4175733126/"
echo
echo "rm -rf \$HOME/.zoom/ \$HOME/.cache/"
echo "rm -f \$HOME/.config/zoom*"
rm -rf $HOME/.zoom/ $HOME/.cache/
rm -f $HOME/.config/zoom*
echo
echo "Completed Zoom user cleanup now."
echo "You may have to close all Zoom processes before attempting to start a new meeting"
echo "with terminal command:"
echo
echo "killall zoom"
echo
echo "Attempting to that for you. Killing Zoom now (if it is running)..."
killall zoom 2>/dev/null
echo
echo "You can start a Zoom meeting with defining a function:"
echo
echo "function zoom () { xdg-open \"zoommtg://zoom.us/join?confno=\$1\"; }"
echo
echo "or with invoking firejail sandbox:"
echo
echo "function zoom () { firejail zoom --url=\"zoommtg://zoom.us/join?action=join&confno=\$1\"; }"
echo
echo "and then use the function:"
echo
echo "zoom 123456789"
echo
echo "To make it handier you can add the shell function above to your $HOME/.bashrc file or $HOME/.zshrc file"
echo
echo "Examples:"
echo
echo "MEETING_ID=123456789"
echo "firejail zoom --url=\"zoommtg://zoom.us/join?action=join&confno=\${MEETING_ID}\""
echo
echo "or maybe like this:"
echo
echo "MEETING_ID=123456789"
echo "xdg-open zoommtg://zoom.us/join?action=join&confno=\${MEETING_ID}"
echo
echo "Done cleaning up Zoom settings for user \"$USER\"."