diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-26 03:15:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-26 03:15:46 +0000 |
commit | ed786a307f07989afff33421f8749c04351bf9a7 (patch) | |
tree | accbf4c1c10b4d738d094b1efd41e1a901f5ee04 /kscreensaver/kxsconfig/update_hacks.sh | |
parent | 7e1fcd00e72a33caeef2d0034a6da17303524064 (diff) | |
download | tdeartwork-ed786a307f07989afff33421f8749c04351bf9a7.tar.gz tdeartwork-ed786a307f07989afff33421f8749c04351bf9a7.zip |
Added missing screensavers and update hacks script
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeartwork@1107577 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kscreensaver/kxsconfig/update_hacks.sh')
-rwxr-xr-x | kscreensaver/kxsconfig/update_hacks.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/kscreensaver/kxsconfig/update_hacks.sh b/kscreensaver/kxsconfig/update_hacks.sh new file mode 100755 index 00000000..5068e5b5 --- /dev/null +++ b/kscreensaver/kxsconfig/update_hacks.sh @@ -0,0 +1,18 @@ +#!/bin/sh +scsvs=`cd /usr/lib/xscreensaver/ && ls -1 | grep -v config` +echo $scsvs +for name in $scsvs; do + if test -f /usr/lib/xscreensaver/$name && test -f /usr/share/xscreensaver/config/$name.xml && test ! -f ScreenSavers/$name.desktop; then + echo "name: $name" + label=`grep '<screensaver.*_label' /usr/share/xscreensaver/config/$name.xml | sed -e 's#^.*_label=\"\(.*\)\".*$#\1#'` + echo "label: $label" + f=ScreenSavers/$name.desktop + sed -e "s#@NAME@#$name#; s#@LABEL@#$label#" ScreenSavers/xscreensaver.template > $f + if ldd /usr/lib/xscreensaver/$name 2>&1 | grep libGL; then + sed -e "s,@GL1@,X-KDE-Category=OpenGL Screen Savers,; s,@GL2@,X-KDE-Type=OpenGL," $f > $f.new + else + grep -v @GL $f > $f.new + fi + mv $f.new $f + fi +done |