The Problem: Xscreensaver displays an error message in both Ubuntu and Linux Mint when running Glslideshow, because a missing font is referenced in the glslideshow hack. The error message is "unable to load font "-*-helvetica-medium-r-normal-*-180-*", using "fixed". Helvetica is a copyrighted font, and Adobe is the copyright holder. You can buy the font, or you can modify glslideshow's source, or you can try a workaround.
The Solution: This is only a workaround instead of a proper solution, such as fixing and recompiling the source code, but it is easy and won't take but five minutes. We can get rid of the error message, if not the error itself. The error will still arise, but we don't need to see it anymore.
Open your file manager. Navigate to your home directory and turn on the option to view hidden files. Edit the hidden file, .xscreensaver, (~/.xscreensaver) as root. If the file does not exist, you may create it. You must edit the file as root in order to modify the file.
Change the option:
Although it may not be necessary, I also changed
I suggest also changing the option Font from Helvetica to: *-medium-r-*-140-*-m-*, although by itself this will not eliminate the initial error message displayed on the first picture. The problem lies in a hardcoded reference to Helvetica found within glslideshow's source code. With a hex editor, one could fix glslideshow's binary for good, changing helvetica to a font that is installed on Ubuntu and its derivatives, but that's dodgy, as a future update would wipe out the change.
While you're editing your xscreensaver file, examine the ImageDirectory option and change it to whichever directory you intend to store your slideshow pictures. Some of the other options are self-explanatory. The mysterious "nice" option just refers to Xscreensaver's priority in comparison to other programs. The default, ten, is low but higher will make it even lower. I left that one alone.
When you're done playing around with the options, save the file and exit.
Now let's edit two more files, found in /etc/X11/app-defaults: XScreenSaver and XScreenSaver-gl. It may not be necessary to change the Stderr options in these files, because according to the comments, the config file in your Home directory takes precedence. I went ahead and changed the options anyway just to be sure that the error message would not display everytime I ran the slideshow. I also changed all references to Helvetica with some other font. "*-medium-r-*-140-*-m-*" should work for this purpose.
The end result is a cleaner slideshow experience without that error message popping up everytime the screensaver activates.Post a Comment