Commit a660a293c791062d6c40bd275ebbf6444e713f8b

Authored by samuel thibault
1 parent 6801ac76

patches/atspi2-shutdown: Automatically shut down brltty on session shut down.

debian/changelog
  1 +brltty (5.6-5) UNRELEASED; urgency=medium
  2 +
  3 + * patches/atspi2-shutdown: Automatically shut down brltty on session shut
  4 + down.
  5 +
  6 + -- Samuel Thibault <sthibault@debian.org> Thu, 28 Jun 2018 01:24:57 +0200
  7 +
1 8 brltty (5.6-4) unstable; urgency=medium
2 9  
3 10 * Cherry-pick python brlapi close fix, to avoid orca accumulating brlapi
... ...
debian/patches/atspi2-shutdown 0 → 100644
... ... @@ -0,0 +1,29 @@
  1 +https://github.com/brltty/brltty/pull/137
  2 +
  3 +commit fba63ebd4efef71b9059ff1afa157dabe5a897d5
  4 +Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
  5 +Date: Thu Jun 28 01:20:58 2018 +0200
  6 +
  7 + atspi2: shutdown brltty automatically on session shutdown
  8 +
  9 +diff --git a/Drivers/Screen/AtSpi2/screen.c b/Drivers/Screen/AtSpi2/screen.c
  10 +index e9d770057..39dddc015 100644
  11 +--- a/Drivers/Screen/AtSpi2/screen.c
  12 ++++ b/Drivers/Screen/AtSpi2/screen.c
  13 +@@ -1001,6 +1001,16 @@ static DBusHandlerResult AtSpi2Filter(DBusConnection *connection, DBusMessage *m
  14 + if (type == DBUS_MESSAGE_TYPE_SIGNAL) {
  15 + if (!strncmp(interface, SPI2_DBUS_INTERFACE_EVENT".", strlen(SPI2_DBUS_INTERFACE_EVENT"."))) {
  16 + AtSpi2HandleEvent(interface + strlen(SPI2_DBUS_INTERFACE_EVENT"."), message);
  17 ++ } else if (!strcmp(interface, DBUS_INTERFACE_LOCAL) &&
  18 ++ !strcmp(member, "Disconnected")) {
  19 ++ logMessage(LOG_CATEGORY(SCREEN_DRIVER),
  20 ++ "DBus disconnected signal, shutting down");
  21 ++#ifdef SIGTERM
  22 ++ raise(SIGTERM);
  23 ++#endif
  24 ++#ifdef SIGINT
  25 ++ raise(SIGINT);
  26 ++#endif
  27 + } else {
  28 + logMessage(LOG_CATEGORY(SCREEN_DRIVER),
  29 + "unknown signal: Intf:%s Msg:%s", interface, member);
... ...
debian/patches/series
... ... @@ -6,3 +6,4 @@ disable-synth-callback.patch
6 6 git-pythonclose
7 7 git-atspi2-init
8 8 git-xbrlapi
  9 +atspi2-shutdown
... ...