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 - gnome-screensaver hack causes problems when gnome-screensaver is not installed
Summary: gnome-screensaver hack causes problems when gnome-screensaver is not installed
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-20 16:59 UTC by David Gow
Modified: 2012-12-29 20:48 UTC (History)
1 user (show)

See Also:


Attachments
Fail gracefully in gnome-screensaver hack (1.32 KB, patch)
2012-12-20 16:59 UTC, David Gow
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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