You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
824 B
19 lines
824 B
15 years ago
|
#!/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
|
||
13 years ago
|
sed -e "s,@GL1@,X-TDE-Category=OpenGL Screen Savers,; s,@GL2@,X-TDE-Type=OpenGL," $f > $f.new
|
||
15 years ago
|
else
|
||
|
grep -v @GL $f > $f.new
|
||
|
fi
|
||
|
mv $f.new $f
|
||
|
fi
|
||
|
done
|