Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126737 - Gnome-screensaver 2.14.0 needs ebuild improvements
Summary: Gnome-screensaver 2.14.0 needs ebuild improvements
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-18 15:50 UTC by Waldo
Modified: 2006-05-16 01:18 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gnome-extra/gnome-screensaver/gnome-screensaver-2.14.0.ebuild (gnome-screensaver-2.14.0.ebuild,2.33 KB, text/plain)
2006-03-21 05:32 UTC, Christian Roessner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Waldo 2006-03-18 15:50:07 UTC
When in gnome screensaver, and choosing the Help button, I get the error:

"Could not load section

The section 'prefs-screensaver' does not exist in this document.  If you were directed to this section from a Help button in an application, please report this to the maintainers of that application."

So there you go.  Also, I'm trying to figure out how to include xscreensaver modules, but I guess that's a question for the forums (unless someone wants to volunteer an answer.)

W
Comment 1 Waldo 2006-03-18 16:44:49 UTC
To answer my own question...

HOW TO MOVE XSCREENSAVER MODULES TO GNOME-SCREENSAVER (The "worked for me" version)

1.  As root, switch into an empty directory somewhere and download this migration script:  http://cvs.gnome.org/viewcvs/*checkout*/gnome-screensaver/data/migrate-xscreensaver-config.sh?rev=1.1&content-type=text%2Fplain

2.  Also get the .XSL file from here and put it in the same directory as the file above:
http://cvs.gnome.org/viewcvs/gnome-screensaver/data/xscreensaver-config.xsl?rev=1.1&view=log

3.  Give the migration script (migrate-xscreensaver-config.sh) executable privilages with:
chmod u+x migrate-xscreensaver-config.sh

4.  Run the migration script as follows:
./migrate-xscreensaver-config.sh /usr/share/xscreensaver/config/*.xml

5.  A bunch of files ending in .desktop should be made in the local directory.  Copy these to the gnome-screensaver directory as follows:
cp *.desktop /usr/share/gnome-screensaver/themes

6.  Finally, copy the xscreensaver module executables into the gnome-screensaver executable directory:
cp  /usr/lib/misc/xscreensaver/* /usr/libexec/gnome-screensaver

7.  Now go to Desktop->Preferences->Screensaver and verify the new modules are there.

(I think I'll post this in the forum too...  anyway, it worked for me.  Might be nice to have this done automatically if xscreensaver is already installed (and maybe disable xscreensaver too?)

W
Comment 2 Arif Lukito 2006-03-19 07:18:43 UTC
To get xscreensaver modules working, gnome-screensaver need to be configured with switches xscreensaverdir and xscreensaverhackdir (the bits that AllanonJL commented out in the ebuild) and xscreensaverhackdir needs to point to /usr/lib/misc/xscreensaver (this is where xscreensaver put its modules, configure doesn't check this dir so we need to specify explicitly). Then do pretty much like comment #1 except
- you can get the script and xsl files from data dir
- you don't need to do step no. 6
- maybe you need to logout from GNOME and login again

Comment 3 Arif Lukito 2006-03-19 07:23:13 UTC
Little tip (got it from somewhere) to avoid duplicate screensaver entries in menu when both xscreensaver and gnome-screensaver installed, compile xscreensaver with -gnome.

Maybe this tip can be added on postinst.
Comment 4 Waldo 2006-03-19 22:57:38 UTC
Updating Summary to reflect the dual nature of this bug (I guess)...

ebuild improvements needed:

1.  Add/fix help so that it works.

2.  Add xscreensaver module support.

Perhaps this could be split into two bugs?  (this bug could be dependent on both)?
Comment 5 Arif Lukito 2006-03-20 05:05:31 UTC
The reason the help doesn't work is likely because there's no help written yet. I don't get any error here, the help button just don't do anything.
Comment 6 Christian Roessner 2006-03-21 05:32:53 UTC
Created attachment 82771 [details]
gnome-extra/gnome-screensaver/gnome-screensaver-2.14.0.ebuild

I have copied this ebuild from bmg-main and modified it to use fast-user-switch support. This ebuild also works fine with xscreensaver stuff.

Regards
Christian
Comment 7 Saleem Abdulrasool (RETIRED) gentoo-dev 2006-04-22 21:22:36 UTC
The tip and the conversion utility is now included with the 2.14.1 version.
Comment 8 Jonas Jonsson 2006-04-29 16:07:11 UTC
(In reply to comment #7)
> The tip and the conversion utility is now included with the 2.14.1 version.
> 

Found some more "problems" with the ebuild. Don't know if it's "standard" to point to the .txt file when it really is a .txt.gz, most editors don't mind but if you just copy-and-paste the path it won't find it, right? It is in the 
pkg_postinst().

The xss-conversion.txt.gz file are missing some important information such that you must copy the exec if you uninstall xscreensaver and the path is wrong, as Waldo said "cp *.desktop /usr/share/gnome-screensaver/themes" and not to "The resulting
.desktop files should be placed into /usr/libexec/gnome-screensaver/" since it is only the exec that needs to be in libexec. 

There are also some "unused" .desktop files in /usr/libexec/gnome-screensaver that also exists in /usr/share/gnome-screensaver/themes.


Comment 9 Saleem Abdulrasool (RETIRED) gentoo-dev 2006-05-16 01:18:47 UTC
Fixed in portage.  Thanks for the comments.  (There is no revbump or version bump as the change is not really that critical).