blob: 21ff2f3820ee76c77b756aac32bc06b22789981a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
post_install()
{
is="is"; it="it"
pacman -Qi libappindicator-gtk2 2>&1|grep "Required By"|grep -q None
[ $? -eq 0 ] && libappindicator="libappindicator-gtk2"
pacman -Qi libappindicator-gtk3 2>&1|grep "Required By"|grep -q None
if [ $? -eq 0 ]; then
[ "$libappindicator" ] && libappindicator="${libappindicator} and " && is="are" && it="them"
libappindicator="${libappindicator}libappindicator-gtk3"
fi
if [ "$libappindicator" ]; then
echo
echo "$libappindicator $is obsolete and may even break"
echo "the tray icon of Signal-Desktop and other Electron apps."
echo "As no package depends on $it it is recommended to remove $it."
echo
fi
ps -e | grep '^.*gnome-session.*$' &>/dev/null
if [ $? -eq 0 ]; then
pacman -Qi gnome-shell-extension-topicons-plus &>/dev/null
if [ $? -ne 0 ]; then
echo
echo "Tray icons are no longer supported by default on Gnome."
echo "If you want use the tray icon of Signal-Desktop,"
echo "install gnome-shell-extension-topicons-plus from AUR."
echo "Then re-login and enable this extension in 'Tweaks' (gnome-tweak-tool)."
echo
fi
fi
}
post_upgrade() {
post_install
}
|