From 08b34225faf1c9e7c656c98a3107752b931133db Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 18 Jun 2008 08:42:49 +0000 Subject: [PATCH] - handle nspluginwrapper Changed files: browser-plugins-update.sh -> 1.8 --- browser-plugins-update.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/browser-plugins-update.sh b/browser-plugins-update.sh index 49a807a..1b3a98f 100644 --- a/browser-plugins-update.sh +++ b/browser-plugins-update.sh @@ -78,6 +78,25 @@ get_browsers() { echo >&3 "browsers: $browsers" } +# void update_nspluginwrapper(void) +# update nspluginwrapper links +update_nspluginwrapper() { + [ -x /usr/bin/nspluginwrapper ] || return + + umask 002 + # call it always in install mode, as update mode does not update existing links + /usr/bin/nspluginwrapper -a -i + + # this will remove oudated plugins + for a in /usr/lib64/browser-plugins/npwrapper.*.so; do + [ -f $a ] || continue + /usr/bin/nspluginwrapper -v -u $a + done + + # run install again after nsplugin wrappers + install_plugins +} + # char *browserplugindir(char *) # returns plugin directory for browser browserplugindir() { @@ -159,3 +178,4 @@ get_browsers remove_plugins install_plugins +update_nspluginwrapper -- 2.43.0