Add an autostart file for the authentication agent

This commit is contained in:
Matthias Clasen 2011-02-22 19:54:46 -05:00
parent 1490f43f35
commit 354c18b3a2
2 changed files with 22 additions and 7 deletions

View File

@ -0,0 +1,12 @@
[Desktop Entry]
Name=Authentication Agent
Comment=PolicyKit Authentication Agent for the GNOME3 fallback session
Exec=/usr/libexec/polkit-gnome-authentication-agent-1
Terminal=false
Type=Application
Categories=
NoDisplay=true
X-Desktop-File-Install-Version=0.18
OnlyShowIn=GNOME;
AutostartCondition=GNOME3 is-session gnome-fallback

View File

@ -3,10 +3,11 @@
Summary: GNOME session manager
Name: gnome-session
Version: 2.91.90
Release: 2%{?dist}
Release: 3%{?dist}
URL: http://www.gnome.org
#VCS: git:git://git.gnome.org/gnome-session
Source0: http://download.gnome.org/sources/gnome-session/2.91/%{name}-%{version}.tar.bz2
Source1: gnome-authentication-agent.desktop
Source2: gnome.desktop
License: GPLv2+
@ -105,14 +106,12 @@ desktop-file-install --vendor gnome --delete-original \
--add-only-show-in GNOME \
$RPM_BUILD_ROOT%{_datadir}/applications/*
install -Dp -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}%{_datadir}/xsessions/
rm -f $RPM_BUILD_ROOT%{_datadir}/gnome/autostart/gnome-login-sound.desktop
rm -f $RPM_BUILD_ROOT%{_datadir}/gnome/shutdown/gnome-logout-sound.sh
rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-session/helpers/gnome-login-sound
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnome/autostart
install -Dp -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/gnome/autostart
install -Dp -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}%{_datadir}/xsessions/
cp -p AUTHORS COPYING NEWS README $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
%find_lang %{po_package}
@ -164,6 +163,10 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
%{_datadir}/glib-2.0/schemas/org.gnome.SessionManager.gschema.xml
%changelog
* Tue Feb 22 2011 Matthias Clasen <mclasen@redhat.com> 2.91.90-3
- Install an autostart file for the authentication agent
in the fallback session
* Tue Feb 22 2011 Ray Strode <rstrode@redhat.com> 2.91.90-2
- Fix crashity crash crash