Only create a directory and a socket when requested
authorMike Gorse <mgorse@suse.com>
Fri, 6 Jul 2012 00:58:43 +0000 (19:58 -0500)
committerMike Gorse <mgorse@suse.com>
Fri, 6 Jul 2012 00:58:43 +0000 (19:58 -0500)
commit6fbb1ba2c5281706525ae93bd78ee6cd1f1c9bc8
treeda98819c0ed77737dab8eff02f5434d9d65782b2
parent246c99e7f62d5009d5bd4b09c491b74afddae9a6
Only create a directory and a socket when requested

Currently, atk-bridge clutters XDG_RUNTIME_DIR with directories for sockets,
which is especially annoying since gtk currently does not call
atk_bridge_adaptor_cleanup, so the directories never go away. This change does
not really solve the problem--it only hides it from users who do not really
need AT-SPI--but, nevertheless, there is no reason to create a directory or a
socket if nothing has requested it, so doing this lazily makes sense.
atk-adaptor/adaptors/application-adaptor.c
atk-adaptor/bridge.c
atk-adaptor/bridge.h