blob: a6fe3e9d62c41fc1be088d8ed9c16449d5cc7bd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
if [ -d ~/.config/QQ/versions ]; then
find ~/.config/QQ/versions -name sharp-lib -type d -exec rm -r {} \; 2>/dev/null
find ~/.config/QQ/versions -name libssh2.so.1 -type f -exec rm {} \; 2>/dev/null
fi
rm -rf ~/.config/QQ/crash_files/*
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
if [[ -f "${XDG_CONFIG_HOME}/qq-flags.conf" ]]; then
mapfile -t QQ_USER_FLAGS <<<"$(grep -v '^#' "${XDG_CONFIG_HOME}/qq-flags.conf")"
echo "User flags:" ${QQ_USER_FLAGS[@]}
fi
exec /opt/QQ/qq ${QQ_USER_FLAGS[@]} "$@"
|