[gnome-color-manager] Apply device color profiles at session startup
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] Apply device color profiles at session startup
- Date: Mon, 2 Nov 2009 12:24:00 +0000 (UTC)
commit 34a5ff4964bd3ea8b6b39524cc5726f99c44f637
Author: Richard Hughes <richard hughsie com>
Date: Mon Nov 2 12:23:12 2009 +0000
Apply device color profiles at session startup
contrib/gnome-color-manager.spec.in | 13 ++++++++++++-
data/Makefile.am | 7 +++++++
data/gcm-apply.desktop.in | 12 ++++++++++++
po/POTFILES.in | 1 +
4 files changed, 32 insertions(+), 1 deletions(-)
---
diff --git a/contrib/gnome-color-manager.spec.in b/contrib/gnome-color-manager.spec.in
index e047887..c035738 100644
--- a/contrib/gnome-color-manager.spec.in
+++ b/contrib/gnome-color-manager.spec.in
@@ -10,7 +10,7 @@ Version: #VERSION#
Release: 0.#BUILD#%{?alphatag}%{?dist}
License: GPLv2+
Group: Applications/System
-URL: http://www.gnome.org
+URL: http://projects.gnome.org/gnome-color-manager/
Source0: http://download.gnome.org/sources/gnome-color-manager/2.29/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -21,9 +21,15 @@ Requires: unique >= %{unique_version}
Requires: shared-mime-info
Requires: vte
Requires: argyllcms
+Requires(post): scrollkeeper
+Requires(pre): GConf2
+Requires(post): GConf2
+Requires(preun): GConf2
+Requires(postun): scrollkeeper
BuildRequires: glib2-devel >= %{glib2_version}
BuildRequires: gtk2-devel >= %{gtk2_version}
+BuildRequires: scrollkeeper
BuildRequires: gnome-doc-utils >= 0.3.2
BuildRequires: desktop-file-utils
BuildRequires: gettext
@@ -49,6 +55,10 @@ export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
make install DESTDIR=$RPM_BUILD_ROOT
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
+desktop-file-install --delete-original \
+ --dir=$RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/ \
+ $RPM_BUILD_ROOT%{_datadir}/gnome/autostart/gcm-apply.desktop
+
for i in gcm-prefs gcm-import ; do
desktop-file-install --delete-original \
--dir=$RPM_BUILD_ROOT%{_datadir}/applications/ \
@@ -113,6 +123,7 @@ update-mime-database %{_datadir}/mime &> /dev/null || :
%config(noreplace) %{_sysconfdir}/gconf/schemas/*.schemas
%{_datadir}/applications/gcm-prefs.desktop
%{_datadir}/applications/gcm-import.desktop
+%{_sysconfdir}/xdg/autostart/*.desktop
%changelog
* #LONGDATE# Richard Hughes <richard hughsie com> #VERSION#-0.#BUILD##ALPHATAG#
diff --git a/data/Makefile.am b/data/Makefile.am
index 441ea99..e36a1c2 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -15,12 +15,18 @@ desktop_in_files = \
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+ INTLTOOL_DESKTOP_RULE@
+autostartdir = $(datadir)/gnome/autostart
+autostart_in_files = gcm-apply.desktop.in
+autostart_DATA = $(autostart_in_files:.desktop.in=.desktop)
+
pkgdata_DATA = \
gcm-calibrate.ui \
gcm-prefs.ui
EXTRA_DIST = \
$(schema_in_files) \
+ $(autostart_in_files) \
$(desktop_in_files) \
$(pkgdata_DATA)
@@ -41,6 +47,7 @@ clean-local :
DISTCLEANFILES = \
gnome-color-manager.schemas \
+ gcm-apply.desktop \
gcm-prefs.desktop \
gcm-import.desktop
diff --git a/data/gcm-apply.desktop.in b/data/gcm-apply.desktop.in
new file mode 100644
index 0000000..1800de3
--- /dev/null
+++ b/data/gcm-apply.desktop.in
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Encoding=UTF-8
+_Name=Load device color profiles
+_GenericName=Load device color profiles
+_Comment=Applies device profile settings at session startup
+Icon=gnome-color-manager
+Exec=gcm-apply
+Terminal=false
+Type=Application
+Categories=
+NotShowIn=KDE;
+
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 751330e..aa56351 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,4 +1,5 @@
[type: gettext/glade]data/gcm-calibrate.ui
+data/gcm-apply.desktop.in
data/gcm-import.desktop.in
data/gcm-prefs.desktop.in
[type: gettext/glade]data/gcm-prefs.ui
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]