As noted in http://defect.opensolaris.org/bz/show_bug.cgi?id=10771
gnome-session in GNOME 2.28 no longer auto-starts screensavers, but
relies on an autostart desktop file being delivered to do this.
Since we need one now for xscreensaver, but expect to replace it with
one for gnome-screensaver in a few builds, I'm proposing to create
a new SUNWgnome-screensaver.spec that for now just creates
SUNWgnome-screensaver-root with a single file in,
/etc/xdg/autostart/xscreensaver.desktop.
When gnome-screensaver itself integrates, it will replace the contents
of this spec file with it's own, and the associated desktop file will
be updated to start gnome-screensaver instead.
This seems much simpler and safer than creating SUNWxscreensaver-root
for a couple of builds and then having to have upgrades replace that
with SUNWgnome-screensaver-root when gnome-screensaver integrates a
few builds later, with the associated risk of having both installed
at once and the resulting screensaver clash.
Question: any license we'll use will be larger than the actual contents
of the package, but I guess we need to specify something beyond just
Copyright 2009 Sun - what else should go in the copyright file for now?
-Alan Coopersmith- alan.coopersmith at sun.com
Sun Microsystems, Inc. - X Window System Engineering
::::::::::::::
SUNWgnome-screensaver.spec
::::::::::::::
#
# spec file for packages SUNWgnome-screensaver-*
#
# Copyright 2009 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# packages are under the same license as the packages themselves.
#
%define owner alanc
#
%include Solaris.inc
# This package is a temporary placeholder to deliver the autostart file
# for xscreensaver for now - will be replaced with the gnome-screensaver
# autostart when that project integrates
Name: SUNWgnome-screensaver-root
Summary: GNOME screensaver configuration files
Version: 0.1
Vendor: Sun Microsystems, Inc.
SUNW_BaseDir: /
SUNW_Copyright: SUNWgnome-screensaver.copyright
License: MIT
Source: xscreensaver.desktop
%include default-depend.inc
Requires: SUNWxscreensaver
%prep
# nothing to do yet
%build
# nothing to do yet
%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/xdg/autostart
cp -p %{SOURCE} ${RPM_BUILD_ROOT}%{_sysconfdir}/xdg/autostart
chmod 444 ${RPM_BUILD_ROOT}%{_sysconfdir}/xdg/autostart/xscreensaver.desktop
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr (-, root, bin)
%attr (0755, root, sys) %dir %{_sysconfdir}
%attr (0755, root, sys) %dir %{_sysconfdir}/xdg
%attr (0755, root, sys) %dir %{_sysconfdir}/xdg/autostart
%{_sysconfdir}/xdg/autostart/*.desktop
%changelog
* Wed Sep 2 2009 - alan.coopersmith at sun.com
- Created with just xscreensaver.desktop to fix
d.o.o Bug 10771 - [gnome2.28] xscreensaver fails to start on login
::::::::::::::
ext-sources/xscreensaver.desktop
::::::::::::::
[Desktop Entry]
Type=Application
Encoding=UTF-8
_Name=Screensaver
Exec=/usr/X11/bin/xscreensaver -nosplash
NoDisplay=true
X-GNOME-Autostart-Phase=Application
X-GNOME-Autostart-Notify=false
X-GNOME-AutoRestart=true
::::::::::::::
copyright/SUNWgnome-screensaver.copyright
::::::::::::::
Copyright 2009 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.