From freedesktop-dbus Thu Jun 01 18:30:41 2006 From: Thiago Macieira Date: Thu, 01 Jun 2006 18:30:41 +0000 To: freedesktop-dbus Subject: Re: screensaver and power manager dbus interfaces Message-Id: <200606012030.42239.thiago.macieira () trolltech ! com> X-MARC-Message: https://marc.info/?l=freedesktop-dbus&m=117323264630658 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart31077808.6ZpQOcpZXy" --nextPart31077808.6ZpQOcpZXy Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Bastian, Waldo wrote: >>Next to that, care should be taken when using dbus in > >security-sensitive > >>applications, like a screensaver -> the always returning "abort when > >bus > >>crashes" issue. You cant allow a screensaver to abort at any time, >>certainly not because of some external service. > >Does the current dbuslib implementation allow you to specify what to do >when the dbus connection gets dropped? If not, then I think that should >be added. What do you mean, Waldo? There's one option in libdbus-1 to quit the application if the connection=20 breaks, but as far as desktop applications go, it's pretty dangerous.=20 It's off by default. The bindings should provide a higher-level interface to trigger a graceful= =20 exit (saving files, etc.). Applications that are security-sensitive could=20 reconnect instead [also handled at a higher-level]. =2D-=20 Thiago Jos=E9 Macieira - thiago.macieira AT trolltech.com Trolltech AS - Sandakerveien 116, NO-0402 Oslo, Norway --nextPart31077808.6ZpQOcpZXy Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEfzJSM/XwBW70U1gRAkosAKCw887qlCM6T2GRYRHdnAWN0/9C3wCfVEe2 TK7iW1HYCMknbG/vpLOo8pU= =QBo2 -----END PGP SIGNATURE----- --nextPart31077808.6ZpQOcpZXy--