blob: cea6de07acfb85f8f026abb48af23dd7b47bc168 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
function note() {
if [ -f /usr/bin/pamac ]; then
echo " ==> [Info]: $@"
else
all_off="$(tput sgr0)"
bold="${all_off}$(tput bold)"
blue="${bold}$(tput setaf 4)"
yellow="${bold}$(tput setaf 3)"
printf "${blue}==>${yellow} [Info]:${bold} $1${all_off}\n"
fi
}
function post_install(){
note '如果桌面通知无法送达, 请检查是否正确设置 libnotify'
note '若要启用 Wayland 支持, 请在 ~/.config/electron-flags.conf 添加 --enable-features=WaylandWindowDecorations 与 --ozone-platform-hint=auto'
note '请注意: 启用 Wayland 支持后将无法使用 Fcitx5 输入法以及任何 Electron 应用的全局菜单'
note '在Xwayland下请勿添加--use-gl=egl, 否则会导致程序卡顿'
}
function post_upgrade(){
post_install
}
|