From c4499405e511d94005c58cf64489199cbb9e5a86 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 2 Dec 2020 10:41:47 +0100 Subject: drivemount: Use common subdirs - data, src --- drivemount/data/Makefile.am | 45 ++++++++++++++++++++++ drivemount/data/drivemount-applet-menu.xml | 3 ++ drivemount/data/drivemount-resources.gresource.xml | 6 +++ ...riveMountApplet.mate-panel-applet.desktop.in.in | 17 ++++++++ drivemount/data/org.mate.drivemount.gschema.xml.in | 9 +++++ ...panel.applet.DriveMountAppletFactory.service.in | 3 ++ 6 files changed, 83 insertions(+) create mode 100644 drivemount/data/Makefile.am create mode 100644 drivemount/data/drivemount-applet-menu.xml create mode 100644 drivemount/data/drivemount-resources.gresource.xml create mode 100644 drivemount/data/org.mate.applets.DriveMountApplet.mate-panel-applet.desktop.in.in create mode 100644 drivemount/data/org.mate.drivemount.gschema.xml.in create mode 100644 drivemount/data/org.mate.panel.applet.DriveMountAppletFactory.service.in (limited to 'drivemount/data') diff --git a/drivemount/data/Makefile.am b/drivemount/data/Makefile.am new file mode 100644 index 00000000..b0dc7718 --- /dev/null +++ b/drivemount/data/Makefile.am @@ -0,0 +1,45 @@ +NULL = + +drivemount_gschema_in_files = org.mate.drivemount.gschema.xml.in +gsettings_SCHEMAS = $(drivemount_gschema_in_files:.xml.in=.xml) +@GSETTINGS_RULES@ + +appletdir = $(datadir)/mate-panel/applets +applet_in_files = org.mate.applets.DriveMountApplet.mate-panel-applet.desktop.in +applet_DATA = $(applet_in_files:.mate-panel-applet.desktop.in=.mate-panel-applet) + +$(applet_in_files): $(applet_in_files).in Makefile + $(AM_V_GEN)sed \ + -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \ + -e "s|\@VERSION\@|$(PACKAGE_VERSION)|" \ + $< > $@ + +$(applet_DATA): $(applet_in_files) Makefile + $(AM_V_GEN) $(MSGFMT) --desktop --keyword=Name --keyword=Description --template $< -d $(top_srcdir)/po -o $@ + +servicedir = $(datadir)/dbus-1/services +service_in_files = org.mate.panel.applet.DriveMountAppletFactory.service.in +service_DATA = $(service_in_files:.service.in=.service) + +org.mate.panel.applet.DriveMountAppletFactory.service: $(service_in_files) + $(AM_V_GEN)sed \ + -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \ + $< > $@ + +CLEANFILES = \ + $(applet_DATA) \ + $(applet_in_files) \ + $(service_DATA) \ + $(gsettings_SCHEMAS) \ + *.gschema.valid \ + $(NULL) + +EXTRA_DIST = \ + $(applet_in_files:=.in) \ + $(drivemount_gschema_in_files) \ + $(service_in_files) \ + drivemount-applet-menu.xml \ + drivemount-resources.gresource.xml \ + $(NULL) + +-include $(top_srcdir)/git.mk diff --git a/drivemount/data/drivemount-applet-menu.xml b/drivemount/data/drivemount-applet-menu.xml new file mode 100644 index 00000000..efc26591 --- /dev/null +++ b/drivemount/data/drivemount-applet-menu.xml @@ -0,0 +1,3 @@ + + + diff --git a/drivemount/data/drivemount-resources.gresource.xml b/drivemount/data/drivemount-resources.gresource.xml new file mode 100644 index 00000000..3a8c57a8 --- /dev/null +++ b/drivemount/data/drivemount-resources.gresource.xml @@ -0,0 +1,6 @@ + + + + drivemount-applet-menu.xml + + diff --git a/drivemount/data/org.mate.applets.DriveMountApplet.mate-panel-applet.desktop.in.in b/drivemount/data/org.mate.applets.DriveMountApplet.mate-panel-applet.desktop.in.in new file mode 100644 index 00000000..637628d2 --- /dev/null +++ b/drivemount/data/org.mate.applets.DriveMountApplet.mate-panel-applet.desktop.in.in @@ -0,0 +1,17 @@ +[Applet Factory] +Id=DriveMountAppletFactory +Location=@LIBEXECDIR@/mate-drivemount-applet +Name=Drive Mount Applet Factory +Description=Factory for drive mount applet + +[DriveMountApplet] +Name=Disk Mounter +Description=Mount local disks and devices +# Translators: Do NOT translate or transliterate this text (this is an icon file name)! +Icon=media-floppy +MateComponentId=OAFIID:MATE_DriveMountApplet +X-MATE-Bugzilla-Bugzilla=MATE +X-MATE-Bugzilla-Product=mate-applets +X-MATE-Bugzilla-Component=Disk Mounter (drivemount) +X-MATE-Bugzilla-Version=@VERSION@ +X-MATE-Bugzilla-OtherBinaries=drivemount_applet2 diff --git a/drivemount/data/org.mate.drivemount.gschema.xml.in b/drivemount/data/org.mate.drivemount.gschema.xml.in new file mode 100644 index 00000000..24ffe871 --- /dev/null +++ b/drivemount/data/org.mate.drivemount.gschema.xml.in @@ -0,0 +1,9 @@ + + + + '#00e300' + Checkmark color for mounted drive or share + Default color in a hex value. + + + diff --git a/drivemount/data/org.mate.panel.applet.DriveMountAppletFactory.service.in b/drivemount/data/org.mate.panel.applet.DriveMountAppletFactory.service.in new file mode 100644 index 00000000..90d44b42 --- /dev/null +++ b/drivemount/data/org.mate.panel.applet.DriveMountAppletFactory.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=org.mate.panel.applet.DriveMountAppletFactory +Exec=@LIBEXECDIR@/mate-drivemount-applet -- cgit v1.2.1