mirror of
https://gitdl.cn/https://github.com/chakralinux/gtk.git
synced 2025-01-24 01:42:13 +08:00
fix chromium.install post_remove function
This commit is contained in:
parent
51477f9126
commit
bcda1bd6a6
@ -2,7 +2,27 @@
|
||||
[ -f extra/etc/chromium/default ] && _default='extra/etc/chromium/default'
|
||||
flashver=11.8.800.154
|
||||
|
||||
instructions() {
|
||||
|
||||
/bin/cat << EOF
|
||||
|
||||
Disable all other flash plugins:
|
||||
Type chrome://plugins/ in the adress bar and press Enter
|
||||
Click on Details button on the top right
|
||||
Click on Disable near all the Flash plugins except the first one
|
||||
|
||||
EOF
|
||||
|
||||
}
|
||||
|
||||
post_install() {
|
||||
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
||||
|
||||
post_upgrade
|
||||
instructions
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
||||
|
||||
if [[ $(cat "$_default") == *ppapi* ]]; then
|
||||
@ -12,8 +32,8 @@ post_install() {
|
||||
fi
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
post_remove() {
|
||||
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
||||
|
||||
if [ -f "$_default" ]; then
|
||||
sed -i 's| --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=1.*[0-999]||' "$_default"
|
||||
@ -21,7 +41,3 @@ post_upgrade() {
|
||||
: # do nothing
|
||||
fi
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user