Adding xscreensaver entries to KDE screensaver menu (Linux from scratch)
I'm using Linux from scratch (lfscript) and wanted to have xscreensaver entries as well as KDE screensaver entries available for selection from the KDE screensaver menu. I finally figured out how to do this after hours of internet searches that led nowhere.
1. Build/install the xscreensaver package.
Note: If a package is created using "make DESTDIR=blah install" (as in lfscript), you must instead do a "make install_prefix=blah install" for the package to be created correctly.
2. Build/install the kdeartwork package. During the build/installation process, the xscreensaver executables will be detected and .desktop files will automatically be created and added to $ROOT/usr/share/applnk/System/ScreenSavers.
Note: For lfscript, you should probably add xscreensaver as a REQUIRES of kdeartwork to guarantee correct build order.
Now the KDE screensaver menu should automatically pick up all xscreensavers and you can use screensavers like BSOD in KDE.
Note that I did this in KDE 3.5.10. This may not work in KDE 4.