! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
screensaver_plugin doesn't work with Gnome screensaver
Status:
RESOLVED: WONTFIX
Product:
Xfce-mcs
Component:
Plugins

Comments

Description Robert Rothenberg 2007-12-09 18:14:57 CET
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11
Build Identifier: 

The screensaver plugin does not work if one is missing xscreensaver but using Gnome screensaver instead.

This can be fixed by creating a script similar to xflock4 which checks for the presence of xscreensaver-demo, and if not found, checks for gnome-screensaver-preferences instead.  



Reproducible: Always

Steps to Reproduce:
1. Uninstall xscreensaver
2. Install gnome-screensaver
3. Restart Xfce
4. Try to run Screensaver Preferences


Actual Results:  
I get an error

Expected Results:  
Should launch gnome-screensaver-preferences instead.


I am using Xfce 4.4.2, on Ubuntu though installed using graphical installer (with some Ubuntu patches added).
Comment 1 Robert Rothenberg 2007-12-09 18:16:47 CET
Created attachment 1460 
Script to locate screensaver preferences utility
Comment 2 Robert Rothenberg 2007-12-09 18:19:08 CET
Created attachment 1461 
A patch to screensaver_plugin.c
Comment 3 Brian J. Tarricone (not reading bugmail) 2007-12-09 20:13:28 CET
Hmm, not sure if this is the best way to do it.  We might want to also change xinitrc to check for the presence of gnome-screensaver and run that instead of xscreensaver on startup.

Might be best to wrap all of this in a 'xfscreensaver' script, so, e.g.:

start screensaver: xfscreensaver
open screensaver config: xfscreensaver --config
force screensaver on: xfscerensaver --activate

... etc.  Tho this might be overkill...
Comment 4 Robert Rothenberg 2007-12-09 21:47:04 CET
(In reply to comment #3)
> Hmm, not sure if this is the best way to do it.  We might want to also change
> xinitrc to check for the presence of gnome-screensaver and run that instead of
> xscreensaver on startup.
> 
> Might be best to wrap all of this in a 'xfscreensaver' script, so, e.g.:
> 
> start screensaver: xfscreensaver
> open screensaver config: xfscreensaver --config
> force screensaver on: xfscerensaver --activate

Maybe better way is to configure a preferred application, as with the web browser, terminal, etc. and use exo-open to load the screensaver configuration or lock the screen, etc.?

Even though it seems overkill, it's the logical place that someone trying to change the configuration would look for it.
Comment 5 Brian J. Tarricone (not reading bugmail) 2007-12-09 21:49:57 CET
Yeah, probably a less hacky idea, though setting the screensaver seems a little too uncommon for Preferred Applications.  Benny, what do you think?
Comment 6 Benedikt Meurer editbugs 2007-12-09 21:52:57 CET
Hm, doable, but that's really overkill.
Comment 7 Nick Schermer editbugs 2011-05-23 09:28:29 CEST
Close bugs in products that are not active anymore.

Bug #3734

Reported by:
Robert Rothenberg
Reported on: 2007-12-09
Last modified on: 2011-05-23

People

Assignee:
Xfce Bug Triage
CC List:
0 users

Version

Attachments

Script to locate screensaver preferences utility (232 bytes, text/plain)
2007-12-09 18:16 CET , Robert Rothenberg
no flags
A patch to screensaver_plugin.c (1.02 KB, patch)
2007-12-09 18:19 CET , Robert Rothenberg
no flags

Additional information