]> git.pld-linux.org Git - packages/browser-plugins.git/commitdiff
- handle nspluginwrapper
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 18 Jun 2008 08:42:49 +0000 (08:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    browser-plugins-update.sh -> 1.8

browser-plugins-update.sh

index 49a807a5d974dc675192969524f2dd48e0bd670c..1b3a98fba3b155316fd464f478ac139d94e9a13f 100644 (file)
@@ -78,6 +78,25 @@ get_browsers() {
        echo >&3 "browsers: $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() {
 # char *browserplugindir(char *)
 # returns plugin directory for browser
 browserplugindir() {
@@ -159,3 +178,4 @@ get_browsers
 
 remove_plugins
 install_plugins
 
 remove_plugins
 install_plugins
+update_nspluginwrapper
This page took 0.04044 seconds and 4 git commands to generate.