Commit ecfb5849 authored by Debarshi Ray's avatar Debarshi Ray

Turn into a DBus activated service

parent 4ff860d6
......@@ -131,7 +131,7 @@ fi
AC_CONFIG_FILES([
Makefile
data/Makefile
data/gnome-photos.desktop.in
data/org.gnome.Photos.desktop.in
data/icons/Makefile
libgd/Makefile
src/Makefile
......
SUBDIRS = icons
appdatadir = $(datadir)/appdata
appdata_in_files = $(PACKAGE_TARNAME).appdata.xml.in
appdata_in_files = org.gnome.Photos.appdata.xml.in
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
desktopdir = $(datadir)/applications
desktop_in_in_files = $(PACKAGE_TARNAME).desktop.in.in
desktop_in_files = $(PACKAGE_TARNAME).desktop.in
desktop_in_in_files = org.gnome.Photos.desktop.in.in
desktop_in_files = org.gnome.Photos.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
......@@ -22,17 +22,23 @@ dist_icons_DATA = \
@GSETTINGS_RULES@
searchproviderdir = $(datadir)/gnome-shell/search-providers
dist_searchprovider_DATA = gnome-photos-search-provider.ini
dist_searchprovider_DATA = org.gnome.Photos.search-provider.ini
servicedir = $(datadir)/dbus-1/services
service_in_files = org.gnome.Photos.service.in
service_DATA = $(service_in_files:.service.in=.service)
EXTRA_DIST = \
$(appdata_in_files) \
$(desktop_in_in_files) \
$(gsettings_SCHEMAS) \
$(service_in_files) \
$(NULL)
CLEANFILES = \
$(appdata_DATA) \
$(desktop_DATA) \
$(service_DATA) \
$(NULL)
DISTCLEANFILES = \
......@@ -48,4 +54,9 @@ check-local: desktop-file-validate
.PHONY: desktop-file-validate
org.gnome.Photos.service: org.gnome.Photos.service.in
$(AM_V_GEN) \
[ -d $(@D) ] || $(mkdir_p) $(@D) ; \
sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@.tmp && mv $@.tmp $@
-include $(top_srcdir)/git.mk
<?xml version="1.0" encoding="UTF-8"?>
<application>
<id type="desktop">gnome-photos.desktop</id>
<id type="desktop">org.gnome.Photos.desktop</id>
<licence>CC0</licence>
<name>Photos</name>
<summary>Access, organize and share your photos on GNOME</summary>
......
......@@ -3,6 +3,7 @@ _Name=Photos
_Comment=Access, organize and share photos
Exec=@PACKAGE_TARNAME@
Icon=@PACKAGE_TARNAME@
DBusActivatable=true
StartupNotify=true
Terminal=false
Type=Application
......
[Shell Search Provider]
DesktopId=gnome-photos.desktop
DesktopId=org.gnome.Photos.desktop
BusName=org.gnome.Photos
ObjectPath=/org/gnome/Photos/SearchProvider
Version=2
[D-BUS Service]
Name=org.gnome.Photos
Exec=@libexecdir@/gnome-photos-service
# List of source files containing translatable strings.
# Please keep this list sorted alphabetically.
data/gnome-photos.appdata.xml.in
data/gnome-photos.desktop.in.in
data/org.gnome.Photos.appdata.xml.in
data/org.gnome.Photos.desktop.in.in
data/org.gnome.photos.gschema.xml
src/eog-exif-util.c
src/eog-image.c
......
data/gnome-photos.desktop.in
data/org.gnome.Photos.desktop.in
bin_PROGRAMS = gnome-photos
dist_bin_SCRIPTS = gnome-photos
gnome_photos_built_sources = \
libexec_PROGRAMS = gnome-photos-service
gnome_photos_service_built_sources = \
gegl-gtk-enums.c \
gegl-gtk-marshal.c \
gegl-gtk-marshal.h \
......@@ -28,11 +30,11 @@ gnome_photos_built_sources = \
photos-tracker-resources.h \
$(NULL)
nodist_gnome_photos_SOURCES = \
$(gnome_photos_built_sources) \
nodist_gnome_photos_service_SOURCES = \
$(gnome_photos_service_built_sources) \
$(NULL)
gnome_photos_SOURCES = \
gnome_photos_service_SOURCES = \
eog-debug.c \
eog-debug.h \
eog-enums.h \
......@@ -231,7 +233,7 @@ gnome_photos_SOURCES = \
$(NULL)
BUILT_SOURCES = \
$(gnome_photos_built_sources) \
$(gnome_photos_service_built_sources) \
$(NULL)
EXTRA_DIST = \
......@@ -278,9 +280,9 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/libgd \
$(NULL)
gnome_photos_LDFLAGS =
gnome_photos_service_LDFLAGS =
gnome_photos_LDADD = \
gnome_photos_service_LDADD = \
$(BABL_LIBS) \
$(CAIRO_LIBS) \
$(EXEMPI_LIBS) \
......
#!/bin/sh
gapplication launch org.gnome.Photos
......@@ -753,6 +753,6 @@ photos_application_new (void)
{
return g_object_new (PHOTOS_TYPE_APPLICATION,
"application-id", "org.gnome." PACKAGE_NAME,
"flags", G_APPLICATION_FLAGS_NONE,
"flags", G_APPLICATION_IS_SERVICE,
NULL);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment