* bug#14474: Using glib's g_file_monitor_file and g_file_monitor_directory
[not found] ` <87bo7ub9go.fsf@gmx.de>
@ 2013-05-31 1:42 ` Paul Eggert
2013-05-31 18:39 ` Michael Albinus
0 siblings, 1 reply; 5+ messages in thread
From: Paul Eggert @ 2013-05-31 1:42 UTC (permalink / raw)
To: Michael Albinus; +Cc: 14474
On 05/28/2013 11:12 PM, Michael Albinus wrote:
> DBUS_SESSION_BUS_ADDRESS="unix:path=/dev/null" seems to be reliable.
OK, thanks, I committed a patch along those lines to the trunk
(bzr 112795); please give it a try.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#14474: Using glib's g_file_monitor_file and g_file_monitor_directory
2013-05-31 1:42 ` bug#14474: Using glib's g_file_monitor_file and g_file_monitor_directory Paul Eggert
@ 2013-05-31 18:39 ` Michael Albinus
2013-05-31 19:24 ` Paul Eggert
0 siblings, 1 reply; 5+ messages in thread
From: Michael Albinus @ 2013-05-31 18:39 UTC (permalink / raw)
To: Paul Eggert; +Cc: 14474
Paul Eggert <eggert@cs.ucla.edu> writes:
Hi Paul,
> On 05/28/2013 11:12 PM, Michael Albinus wrote:
>> DBUS_SESSION_BUS_ADDRESS="unix:path=/dev/null" seems to be reliable.
>
> OK, thanks, I committed a patch along those lines to the trunk
> (bzr 112795); please give it a try.
You've put the lines inside #ifdef USE_GTK. However, glib could be
linked to Emacs without using gtk. We might need another check, like
#ifdef USE_GLIB. This would be useful in other places, too.
Furthermore, I'd wrap these lines with #ifdef HAVE_DBUS. If Emacs is
compiled without D-Bus support, external processes could still use
D-Bus via autolaunch. You suppress this possibility by overwriting
$DBUS_SESSION_BUS_ADDRESS.
Best regards, Michael.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#14474: Using glib's g_file_monitor_file and g_file_monitor_directory
2013-05-31 18:39 ` Michael Albinus
@ 2013-05-31 19:24 ` Paul Eggert
2013-05-31 20:59 ` Michael Albinus
2013-05-31 22:08 ` Jan Djärv
0 siblings, 2 replies; 5+ messages in thread
From: Paul Eggert @ 2013-05-31 19:24 UTC (permalink / raw)
To: Michael Albinus; +Cc: 14474
On 05/31/13 11:39, Michael Albinus wrote:
> You've put the lines inside #ifdef USE_GTK. However, glib could be
> linked to Emacs without using gtk. We might need another check, like
> #ifdef USE_GLIB. This would be useful in other places, too.
That might make sense in the long run, if Emacs is built that way.
But as I understand it, currently Emacs links to glib only when
using Gtk, so the workaround is OK under the current framework.
> Furthermore, I'd wrap these lines with #ifdef HAVE_DBUS. If Emacs is
> compiled without D-Bus support, external processes could still use
> D-Bus via autolaunch. You suppress this possibility by overwriting
> $DBUS_SESSION_BUS_ADDRESS.
Can't the Emacs process autolaunch D-bus subprocesses even when it
HAVE_DBUS is not defined? That is, some other toolkit that Emacs links to,
could autolaunch D-Bus. So it wouldn't be safe to wrap the lines
with #ifdef HAVE_DBUS.
I do see the problem that you mention. I think a better fix, though,
is to redo Emacs to use the glib child watcher code -- that will fix
the problem that you mention, along with the problem for Emacs itself.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#14474: Using glib's g_file_monitor_file and g_file_monitor_directory
2013-05-31 19:24 ` Paul Eggert
@ 2013-05-31 20:59 ` Michael Albinus
2013-05-31 22:08 ` Jan Djärv
1 sibling, 0 replies; 5+ messages in thread
From: Michael Albinus @ 2013-05-31 20:59 UTC (permalink / raw)
To: Paul Eggert; +Cc: 14474
Paul Eggert <eggert@cs.ucla.edu> writes:
>> You've put the lines inside #ifdef USE_GTK. However, glib could be
>> linked to Emacs without using gtk. We might need another check, like
>> #ifdef USE_GLIB. This would be useful in other places, too.
>
> That might make sense in the long run, if Emacs is built that way.
> But as I understand it, currently Emacs links to glib only when
> using Gtk, so the workaround is OK under the current framework.
The g_file_monitor patch I've shown uses glib. No gtk. And the same is
true for gconf and gsettings, IIUC.
> I do see the problem that you mention. I think a better fix, though,
> is to redo Emacs to use the glib child watcher code -- that will fix
> the problem that you mention, along with the problem for Emacs itself.
Yep, this might be better.
Best regards, Michael.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#14474: Using glib's g_file_monitor_file and g_file_monitor_directory
2013-05-31 19:24 ` Paul Eggert
2013-05-31 20:59 ` Michael Albinus
@ 2013-05-31 22:08 ` Jan Djärv
1 sibling, 0 replies; 5+ messages in thread
From: Jan Djärv @ 2013-05-31 22:08 UTC (permalink / raw)
To: Paul Eggert; +Cc: Michael Albinus, 14474@debbugs.gnu.org
Hello.
31 maj 2013 kl. 21:24 skrev Paul Eggert <eggert@cs.ucla.edu>:
> On 05/31/13 11:39, Michael Albinus wrote:
>
>> You've put the lines inside #ifdef USE_GTK. However, glib could be
>> linked to Emacs without using gtk. We might need another check, like
>> #ifdef USE_GLIB. This would be useful in other places, too.
>
> That might make sense in the long run, if Emacs is built that way.
> But as I understand it, currently Emacs links to glib only when
> using Gtk, so the workaround is OK under the current framework.
>
This is false. Emacs links with glib if one of GConf, Gsettings or rsvg is linked in. They are independent of Gtk.
Jan D.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-05-31 22:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <87zjxxn6th.fsf@gmx.de>
[not found] ` <87hajqpjn1.fsf@gmx.de>
[not found] ` <jwvtxnnfptz.fsf-monnier+emacs@gnu.org>
[not found] ` <8738t7pewc.fsf@gmx.de>
[not found] ` <51A4C2E9.8040000@cs.ucla.edu>
[not found] ` <87vc63nlje.fsf@gmx.de>
[not found] ` <51A4FFAD.20202@cs.ucla.edu>
[not found] ` <87obbuc0dy.fsf@gmx.de>
[not found] ` <51A515B8.4040405@cs.ucla.edu>
[not found] ` <87bo7ub9go.fsf@gmx.de>
2013-05-31 1:42 ` bug#14474: Using glib's g_file_monitor_file and g_file_monitor_directory Paul Eggert
2013-05-31 18:39 ` Michael Albinus
2013-05-31 19:24 ` Paul Eggert
2013-05-31 20:59 ` Michael Albinus
2013-05-31 22:08 ` Jan Djärv
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).