新增 XSLPrintDot 项目,包含打印服务的核心功能和相关配置。实现打印机查询、打印任务处理、远程转发功能,并支持多平台设备ID获取。优化打印数据准备逻辑,增强系统的可维护性和扩展性,同时更新工作区配置以支持新项目。
This commit is contained in:
37
XSLPrintDot/scripts/uninstall.sh
Normal file
37
XSLPrintDot/scripts/uninstall.sh
Normal file
@@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
remove_data_linux() {
|
||||
if [ -n "${XDG_DATA_HOME:-}" ]; then
|
||||
BASE_DIR="$XDG_DATA_HOME/PrintDot"
|
||||
elif [ -n "${HOME:-}" ]; then
|
||||
BASE_DIR="$HOME/.local/share/PrintDot"
|
||||
else
|
||||
BASE_DIR=""
|
||||
fi
|
||||
|
||||
if [ -n "$BASE_DIR" ]; then
|
||||
rm -rf "$BASE_DIR"
|
||||
fi
|
||||
}
|
||||
|
||||
remove_data_macos() {
|
||||
if [ -n "${HOME:-}" ]; then
|
||||
rm -rf "$HOME/Library/Application Support/PrintDot"
|
||||
fi
|
||||
}
|
||||
|
||||
case "$(uname -s)" in
|
||||
Darwin)
|
||||
remove_data_macos
|
||||
;;
|
||||
Linux)
|
||||
remove_data_linux
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported OS: $(uname -s)"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "PrintDot data removed."
|
||||
Reference in New Issue
Block a user