We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1670

Summary: gnome-screensaver hack causes problems when gnome-screensaver is not installed
Product: SDL Reporter: David Gow <david>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: chewi
Version: HG 2.0   
Hardware: x86_64   
OS: Linux   
Attachments: Fail gracefully in gnome-screensaver hack

Description David Gow 2012-12-20 16:59:10 UTC
Created attachment 1000 [details]
Fail gracefully in gnome-screensaver hack

The gnome-screensaver hack tries to run /usr/bin/gnome-screensaver-command even if it doesn't exist.

This crashes (at least) Dungeon Defenders when gnome is not installed. See https://bugzilla.icculus.org/show_bug.cgi?id=5820. Thanks to 'signals' on the Phoronix forums for finding it.

I've written a quick patch that makes gnome_screensaver_disable (and enable) fail more gracefully. It's enough to get Dungeon Defenders to work.

-- David
Comment 1 David Gow 2012-12-29 20:48:32 UTC
Ryan has fixed this in hg by using dbus to prod gnome-screensaver.

See: http://hg.libsdl.org/SDL/rev/ad8522052ce6