summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@konsulko.com>2023-05-20 20:49:21 +0000
committerDenys Dmytriyenko <denys@konsulko.com>2023-05-20 21:04:28 +0000
commit7a3e870a8349d43a4838604db2c28140c2f76c9f (patch)
treede3a0d2928b2d4ae8521b40c50bda485cc9671d0 /data
parent5cab14e6a98519e0b6c6043a1a19e42f094d6522 (diff)
Remove deprecated D-Bus interface
As applaunchd now uses gRPC as its API and launches applications as systemd services, plus all applications have been converted now, it is time to remove the old D-Bus interface. Bug-AGL: SPEC-4801 Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Change-Id: Icec29c13d9310cfb043b87e44f4c5f3f0c986ccc
Diffstat (limited to 'data')
-rw-r--r--data/meson.build57
-rw-r--r--data/org.automotivelinux.AppLaunch.service.in3
-rw-r--r--data/org.automotivelinux.AppLaunch.xml74
-rw-r--r--data/org.freedesktop.Application.xml17
4 files changed, 0 insertions, 151 deletions
diff --git a/data/meson.build b/data/meson.build
deleted file mode 100644
index 34aefa4..0000000
--- a/data/meson.build
+++ /dev/null
@@ -1,57 +0,0 @@
-#
-# Copyright (C) 2021 Collabora Ltd
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-gnome = import('gnome')
-
-# DBus server interface
-dbus_prefix = 'org.automotivelinux.'
-dbus_namespace = 'applaunchd'
-
-generated_dbus_sources = []
-
-dbus_interfaces = [ 'org.automotivelinux.AppLaunch.xml' ]
-
-generated_dbus_sources += gnome.gdbus_codegen('applaunch-dbus',
- sources : dbus_interfaces,
- object_manager : false,
- interface_prefix : 'org.automotivelinux.',
- install_header : false,
- namespace : 'applaunchd')
-
-dbus_header_dir = meson.current_build_dir()
-dbus_inc = include_directories('.')
-install_data(dbus_interfaces, install_dir: ifacedir)
-
-# Application DBus interface
-generated_dbus_sources += gnome.gdbus_codegen('fdo-dbus',
- sources : [ 'org.freedesktop.Application.xml' ],
- object_manager : false,
- interface_prefix : 'org.freedesktop.',
- install_header : false,
- namespace : 'fdo')
-
-# systemd service file
-service_data = configuration_data()
-service_data.set('bindir', bindir)
-service_file = 'org.automotivelinux.AppLaunch.service'
-
-configure_file(
- input : service_file + '.in',
- output : service_file,
- configuration : service_data,
- install : true,
- install_dir: servicedir,
-)
diff --git a/data/org.automotivelinux.AppLaunch.service.in b/data/org.automotivelinux.AppLaunch.service.in
deleted file mode 100644
index 6a0e297..0000000
--- a/data/org.automotivelinux.AppLaunch.service.in
+++ /dev/null
@@ -1,3 +0,0 @@
-[D-BUS Service]
-Name=org.automotivelinux.AppLaunch
-Exec=@bindir@/applaunchd-dbus
diff --git a/data/org.automotivelinux.AppLaunch.xml b/data/org.automotivelinux.AppLaunch.xml
deleted file mode 100644
index 52aa20b..0000000
--- a/data/org.automotivelinux.AppLaunch.xml
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
-
-<!--
- AppLaunch Interface Specification
-
- Copyright (C) 2021 Collabora Ltd
--->
-<node name="/org/automotivelinux/AppLaunch" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
-
- <!--
- org.automotivelinux.AppLaunch:
- @short_description: The AppLaunch interface.
-
- The AppLaunch interface allows requesting application startup and
- being notified of application startup and termination events.
- -->
- <interface name="org.automotivelinux.AppLaunch">
-
- <!--
- start:
- @appid: Application ID, should match:
- - the xdg-shell app-id for graphical applications started
- through a command line
- - the D-Bus name owned by the application for D-Bus activated
- apps
-
- Start the application with the corresponding application ID.
- -->
- <method name="start">
- <arg name="appid" type="s" direction="in"/>
- </method>
-
- <!--
- listApplications:
- @graphical: Whether the should should be limited to graphical
- applications.
- @applist: The application list as an array of variants. Each array item
- is an application entry, represented as a structure of 3 strings:
- - application ID
- - application name
- - absolute icon path
-
- Retrieve the list of applications which can be started using this interface.
- -->
- <method name="listApplications">
- <arg name="graphical" type="b" direction="in"/>
- <arg name="applist" type="av" direction="out"/>
- </method>
-
- <!--
- started:
- @appid: Application ID
-
- Emitted when an application started successfully, which happens when:
- - the D-Bus name has been taken for D-Bus activated applications
- - the process was created for other applications
- -->
- <signal name="started">
- <arg name="appid" type="s"/>
- </signal>
-
- <!--
- terminated:
- @appid: Application ID
-
- Emitted when an application terminated, which happens when:
- - the D-Bus name has been released for D-Bus activated applications
- - the process exited for other applications
- -->
- <signal name="terminated">
- <arg name="appid" type="s"/>
- </signal>
- </interface>
-</node>
diff --git a/data/org.freedesktop.Application.xml b/data/org.freedesktop.Application.xml
deleted file mode 100644
index dc03d70..0000000
--- a/data/org.freedesktop.Application.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
-<node>
- <interface name='org.freedesktop.Application'>
- <method name='Activate'>
- <arg type='a{sv}' name='platform_data' direction='in'/>
- </method>
- <method name='Open'>
- <arg type='as' name='uris' direction='in'/>
- <arg type='as' name='platform_data' direction='in'/>
- </method>
- <method name='ActivateAction'>
- <arg type='s' name='action_name' direction='in'/>
- <arg type='av' name='parameter' direction='in'/>
- <arg type='as' name='platform_data' direction='in'/>
- </method>
- </interface>
-</node>