Hi, The stuff I was talking about yesterday, the org.gnome.SessionManager "Inhibit" method, is defined into: gnome-power-manager-2.32.0/src/gpm-session.c, thus is effectively a gnome-power-manager thing.
Ok for the diff below? Currently it's not enabled by default, the "legacy" method of using the XScrnSaver library is. If you want to use gnome-power-manager's inhibit, go into Edit->Preferences->Interface and remove the flag from "Use X Screen Saver control over Gnome Power Manager". Ciao, David Index: Makefile =================================================================== RCS file: /cvs/ports/x11/gnome-mplayer/Makefile,v retrieving revision 1.36 diff -u -p -r1.36 Makefile --- Makefile 4 May 2011 05:35:54 -0000 1.36 +++ Makefile 25 May 2011 08:25:31 -0000 @@ -2,7 +2,7 @@ COMMENT = GTK+/GNOME frontend for MPlayer DISTNAME = gnome-mplayer-1.0.3 -REVISION = 0 +REVISION = 1 CATEGORIES = x11 multimedia MAINTAINER = David Coppa <dco...@openbsd.org> @@ -49,6 +49,7 @@ CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE LDFLAGS="-L${LOCALBASE}/lib \ -L${X11BASE}/lib -pthread" CONFIGURE_ARGS = --with-gio \ + --with-gpm-new-method \ --with-libnotify \ --with-libgpod \ --with-libmusicbrainz3 \ Index: patches/patch-configure =================================================================== RCS file: /cvs/ports/x11/gnome-mplayer/patches/patch-configure,v retrieving revision 1.5 diff -u -p -r1.5 patch-configure --- patches/patch-configure 28 Apr 2011 11:47:48 -0000 1.5 +++ patches/patch-configure 25 May 2011 08:25:31 -0000 @@ -131,51 +131,3 @@ disable gnome-power-manager support -@@ -9318,47 +9231,6 @@ $as_echo "#define SM_INHIBIT 0" >>confdefs.h - $as_echo "#define SS_INHIBIT 0" >>confdefs.h - - -- --# Check whether --with-gpm-new-method was given. --if test "${with_gpm_new_method+set}" = set; then : -- withval=$with_gpm_new_method; CHECK_GPM=no --$as_echo "#define SM_INHIBIT 1" >>confdefs.h -- --fi -- -- --# Check whether --with-gpm-old-method was given. --if test "${with_gpm_old_method+set}" = set; then : -- withval=$with_gpm_old_method; CHECK_GPM=no --$as_echo "#define SS_INHIBIT 1" >>confdefs.h -- --fi -- -- --if test x$CHECK_GPM = "xyes"; then -- GPM=`which gnome-power-manager` -- if test "$GPM" != ""; then -- { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for gnome-power-manager support" >&5 --$as_echo "$as_me: Checking for gnome-power-manager support" >&6;} -- GPMVER=`$GPM --version | sed -e 's/.* 2.//' | cut -b1-2` -- if test -n $GPMVER; then -- --$as_echo "#define SM_INHIBIT 1" >>confdefs.h -- -- else -- if test $GPMVER -ge 26; then -- --$as_echo "#define SM_INHIBIT 1" >>confdefs.h -- -- fi -- if test $GPMVER -lt 26; then -- --$as_echo "#define SS_INHIBIT 1" >>confdefs.h -- -- fi -- fi -- fi --fi - - if test x$with_gsettings = "xyes"; then -