Accepting request 21965 from home:vuntz:branches:GNOME:Factory

Copy from home:vuntz:branches:GNOME:Factory/gnome-shell via accept of submit request 21965 revision 13.
Request was accepted with message:
Forwarding to openSUSE:Factory

OBS-URL: https://build.opensuse.org/request/show/21965
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-shell?expand=0&rev=15
This commit is contained in:
Vincent Untz 2009-10-07 11:27:48 +00:00 committed by Git OBS Bridge
parent e7d248b921
commit b258ffc98c
4 changed files with 44 additions and 1 deletions

12
gnome-shell-session Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
#
# Script to start a GNOME session in a GNOME 3 preview mode.
#
if test -n "$XDG_CONFIG_DIRS"; then
export XDG_CONFIG_DIRS=/usr/share/gnome-shell/xdg-override:$XDG_CONFIG_DIRS
else
export XDG_CONFIG_DIRS=/usr/share/gnome-shell/xdg-override:/etc/xdg
fi
exec /usr/bin/gnome $*

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed Oct 7 13:14:17 CEST 2009 - vuntz@opensuse.org
- Create a preview mode for GNOME 3 that can be started from gdm:
+ install a .desktop file in /usr/share/xsessions.
+ this .desktop file starts a script that will prepend a custom
directory to XDG_CONFIG_DIRS and then start the usual GNOME
script.
+ the custom directory contain an autostart file for gnome-shell,
that overrides the default gnome-panel+windowmanager combo.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Sep 16 19:03:01 CEST 2009 - lmedinas@opensuse.org Wed Sep 16 19:03:01 CEST 2009 - lmedinas@opensuse.org

View File

@ -40,9 +40,14 @@ Version: 2.27.3
Release: 1 Release: 1
Summary: GNOME Shell Summary: GNOME Shell
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
# To integrate a preview mode in GDM.
# Note: this also explains the Requires on gnome-session below.
Source1: gnome-shell-session
Source2: gnome3.desktop
# PATCH-FIX-OPENSUSE gnome-shell-libmozjs.patch vuntz@novell.com -- LD_LIBRARY_PATH neeeds to be set on 11.1 # PATCH-FIX-OPENSUSE gnome-shell-libmozjs.patch vuntz@novell.com -- LD_LIBRARY_PATH neeeds to be set on 11.1
Patch99: gnome-shell-libmozjs.patch Patch99: gnome-shell-libmozjs.patch
Requires: %{name}-lang = %{version} Requires: %{name}-lang = %{version}
Requires: gnome-session
# mutter-devel doesn't automatically bring mutter # mutter-devel doesn't automatically bring mutter
Requires: mutter Requires: mutter
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -76,6 +81,13 @@ find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
%find_lang %{name} %find_lang %{name}
%suse_update_desktop_file %{name} %suse_update_desktop_file %{name}
%find_gconf_schemas %find_gconf_schemas
# Preview mode for GNOME 3
install -m755 %{S:1} %{buildroot}%{_libexecdir}/%{name}/
install -d -m755 %{buildroot}%{_datadir}/xsessions
install -m644 %{S:2} %{buildroot}%{_datadir}/xsessions/
%suse_update_desktop_file %{buildroot}%{_datadir}/xsessions/gnome3.desktop
install -d -m755 %{buildroot}%{_datadir}/gnome-shell/xdg-override/autostart
cp %{buildroot}%{_datadir}/applications/gnome-shell.desktop %{buildroot}%{_datadir}/gnome-shell/xdg-override/autostart/
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -96,7 +108,8 @@ rm -rf $RPM_BUILD_ROOT
%endif %endif
%{_libdir}/mutter/plugins/*.so %{_libdir}/mutter/plugins/*.so
%{_datadir}/applications/*.desktop %{_datadir}/applications/*.desktop
%{_datadir}/gnome-shell %{_datadir}/gnome-shell/
%{_datadir}/xsessions/*.desktop
%files lang -f %{name}.lang %files lang -f %{name}.lang

7
gnome3.desktop Normal file
View File

@ -0,0 +1,7 @@
[Desktop Entry]
Encoding=UTF-8
Type=XSession
Exec=/usr/lib/gnome-shell/gnome-shell-session
TryExec=/usr/lib/gnome-shell/gnome-shell-session
Name=GNOME 3 Preview
Comment=The GNU Network Object Model Environment. A complete, free and easy-to-use desktop environment