summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-07-01 16:09:31 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2009-07-01 16:09:31 +0200
commite5c814ec3846a6d5806e3dd38e1a36160c7d73d2 (patch)
tree382feb25a19ac95da72e4f2780a65072064d1cae
parentd4f6958f1d4785e1fd9011a6694255f6b64d75b4 (diff)
downloadabrt-e5c814ec3846a6d5806e3dd38e1a36160c7d73d2.tar.gz
abrt-e5c814ec3846a6d5806e3dd38e1a36160c7d73d2.tar.xz
abrt-e5c814ec3846a6d5806e3dd38e1a36160c7d73d2.zip
Added desktop file for applet, to make it start automatically.
-rw-r--r--abrt.spec3
-rw-r--r--src/Applet/Makefile.am5
-rw-r--r--src/Applet/abrt-applet.desktop6
3 files changed, 13 insertions, 1 deletions
diff --git a/abrt.spec b/abrt.spec
index 9400ddbe..fcdcd0c1 100644
--- a/abrt.spec
+++ b/abrt.spec
@@ -4,7 +4,7 @@
Summary: Automatic bug detection and reporting tool
Name: abrt
Version: 0.0.4
-Release: 3%{?dist}
+Release: 4%{?dist}
License: GPLv2+
Group: Applications/System
URL: https://fedorahosted.org/abrt/
@@ -237,6 +237,7 @@ fi
%files applet
%defattr(-,root,root,-)
%{_bindir}/%{name}-applet
+%{_sysconfdir}/xdg/autostart/abrt-applet.desktop
%files gui
%defattr(-,root,root,-)
diff --git a/src/Applet/Makefile.am b/src/Applet/Makefile.am
index c80daef8..814efd42 100644
--- a/src/Applet/Makefile.am
+++ b/src/Applet/Makefile.am
@@ -6,3 +6,8 @@ abrt_applet_CPPFLAGS = -Wall -Werror -I../Daemon/ \
-I../../lib/MiddleWare -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
abrt_applet_LDADD = $(DL_LIBS) $(GTK_LIBS) -lglib-2.0 -lgthread-2.0 $(DBUSCPP_LIBS) $(LIBNOTIFY_LIBS)
+
+EXTRA_DIST = abrt-applet.desktop
+
+autostartdir = $(sysconfdir)/xdg/autostart
+autostart_DATA = abrt-applet.desktop
diff --git a/src/Applet/abrt-applet.desktop b/src/Applet/abrt-applet.desktop
new file mode 100644
index 00000000..d7cc9662
--- /dev/null
+++ b/src/Applet/abrt-applet.desktop
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Name=Automatic Bug Reporting Tool
+Exec=abrt-applet
+Terminal=false
+Type=Application
+X-GNOME-Autostart-enabled=true