* Emacs insists on starting dbus? @ 2012-07-31 14:49 Harald Hanche-Olsen 2012-07-31 16:56 ` Jan Djärv ` (2 more replies) 0 siblings, 3 replies; 21+ messages in thread From: Harald Hanche-Olsen @ 2012-07-31 14:49 UTC (permalink / raw) To: emacs-devel Short version: I built emacs with --without-dbus, yet when I run emacs -Q, it runs dbus-launch. Why? Surely, this is not the way it should be? Slightly longer version: I am on Ubuntu, fresh emacs source from trunk, and ./config.status -V outputs this: emacs config.status 24.1.50 configured by ../configure, generated by GNU Autoconf 2.65, with options "'--without-dbus' '--prefix=/global/work/hanche/pkg/emacs/2012-07-31' '--with-gif=no' '--with-x-toolkit=lucid'" And here is what happens: ; strace -f -e execve /global/work/hanche/pkg/emacs/current/bin/emacs -Q Process 31127 attached [...] [pid 31127] execve("/usr/bin/dbus-launch", ["dbus-launch", "--autolaunch", "2873e88d4c5664b2024eb9654eddd59c", "--binary-syntax", "--close-stderr"], [/* 205 vars */]) = 0 [...] A bit of background: This is on a server running as a virtual machine. I would like to have an emacs daemon running on this server that I can connect to and use (with x11) when I ssh into the machine. But when I am done using my emacs windows and have closed them all, ssh still hangs around when I log out because the dbus process(es) are hanging onto one or two x11 connections tunneled by ssh. The only workaround I see is to kill those dbus processes by hand, which is a bother. I'd file a bug report, but I wanted to ask here first if this is a bug or a feature. And if the latter, how do I work around it? - Harald ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-07-31 14:49 Emacs insists on starting dbus? Harald Hanche-Olsen @ 2012-07-31 16:56 ` Jan Djärv 2012-07-31 17:54 ` Michael Albinus 2012-07-31 17:49 ` Michael Albinus 2012-08-01 13:23 ` Steinar Bang 2 siblings, 1 reply; 21+ messages in thread From: Jan Djärv @ 2012-07-31 16:56 UTC (permalink / raw) To: Harald Hanche-Olsen; +Cc: emacs-devel Hello. Add --without-gsettings also. Jan D. 31 jul 2012 kl. 16:49 skrev Harald Hanche-Olsen: > Short version: I built emacs with --without-dbus, > yet when I run emacs -Q, it runs dbus-launch. > > Why? Surely, this is not the way it should be? > > Slightly longer version: I am on Ubuntu, fresh emacs source from > trunk, and ./config.status -V outputs this: > emacs config.status 24.1.50 > configured by ../configure, generated by GNU Autoconf 2.65, > with options "'--without-dbus' '--prefix=/global/work/hanche/pkg/emacs/2012-07-31' '--with-gif=no' '--with-x-toolkit=lucid'" > And here is what happens: > ; strace -f -e execve /global/work/hanche/pkg/emacs/current/bin/emacs -Q > Process 31127 attached > [...] > [pid 31127] execve("/usr/bin/dbus-launch", ["dbus-launch", "--autolaunch", "2873e88d4c5664b2024eb9654eddd59c", "--binary-syntax", "--close-stderr"], [/* 205 vars */]) = 0 > [...] > > A bit of background: This is on a server running as a virtual machine. > I would like to have an emacs daemon running on this server that I can > connect to and use (with x11) when I ssh into the machine. But when I > am done using my emacs windows and have closed them all, ssh still > hangs around when I log out because the dbus process(es) are hanging > onto one or two x11 connections tunneled by ssh. The only workaround I > see is to kill those dbus processes by hand, which is a bother. > > I'd file a bug report, but I wanted to ask here first if this is a bug > or a feature. And if the latter, how do I work around it? > > - Harald ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-07-31 16:56 ` Jan Djärv @ 2012-07-31 17:54 ` Michael Albinus 2012-07-31 18:01 ` Harald Hanche-Olsen 2012-07-31 18:51 ` Jan Djärv 0 siblings, 2 replies; 21+ messages in thread From: Michael Albinus @ 2012-07-31 17:54 UTC (permalink / raw) To: Jan Djärv; +Cc: Harald Hanche-Olsen, emacs-devel Jan Djärv <jan.h.d@swipnet.se> writes: > Hello. Hi, > Add --without-gsettings also. Hmm. If this is the reason for the D-Bus autostart, shouldn't it be set impicitely when --without-dbus is applied? And if not, this should be documented, at least. > Jan D. Best regards, Michael. ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-07-31 17:54 ` Michael Albinus @ 2012-07-31 18:01 ` Harald Hanche-Olsen 2012-07-31 18:15 ` Ken Brown 2012-07-31 18:51 ` Jan Djärv 1 sibling, 1 reply; 21+ messages in thread From: Harald Hanche-Olsen @ 2012-07-31 18:01 UTC (permalink / raw) To: emacs-devel [Michael Albinus <michael.albinus@gmx.de> (2012-07-31 17:54:18 UTC)] > Jan Djärv <jan.h.d@swipnet.se> writes: > > > Hello. > > Hi, > > > Add --without-gsettings also. > > Hmm. If this is the reason for the D-Bus autostart, shouldn't it be set > impicitely when --without-dbus is applied? I just finished testing that, and it still started dbus. - Harald ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-07-31 18:01 ` Harald Hanche-Olsen @ 2012-07-31 18:15 ` Ken Brown 2012-07-31 18:32 ` Harald Hanche-Olsen 0 siblings, 1 reply; 21+ messages in thread From: Ken Brown @ 2012-07-31 18:15 UTC (permalink / raw) To: emacs-devel On 7/31/2012 2:01 PM, Harald Hanche-Olsen wrote: > [Michael Albinus<michael.albinus@gmx.de> (2012-07-31 17:54:18 UTC)] > >> Jan Djärv<jan.h.d@swipnet.se> writes: >> >>> Hello. >> >> Hi, >> >>> Add --without-gsettings also. >> >> Hmm. If this is the reason for the D-Bus autostart, shouldn't it be set >> impicitely when --without-dbus is applied? > > I just finished testing that, and it still started dbus. You might need to also add --without-gconf. Ken ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-07-31 18:15 ` Ken Brown @ 2012-07-31 18:32 ` Harald Hanche-Olsen 2012-07-31 18:51 ` Michael Albinus 2012-08-01 13:25 ` Steinar Bang 0 siblings, 2 replies; 21+ messages in thread From: Harald Hanche-Olsen @ 2012-07-31 18:32 UTC (permalink / raw) To: emacs-devel [Ken Brown <kbrown@cornell.edu> (2012-07-31 18:15:27 UTC)] > >>> Add --without-gsettings also. > > > > I just finished testing that, and it still started dbus. > > You might need to also add --without-gconf. Ah. That did it. Then the remaining question, then: Bug, feature, or documentation bug? I can file a bug report, but I am not sure what to write in it. - Harald ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-07-31 18:32 ` Harald Hanche-Olsen @ 2012-07-31 18:51 ` Michael Albinus 2012-08-01 13:25 ` Steinar Bang 1 sibling, 0 replies; 21+ messages in thread From: Michael Albinus @ 2012-07-31 18:51 UTC (permalink / raw) To: Harald Hanche-Olsen; +Cc: emacs-devel Harald Hanche-Olsen <hanche@math.ntnu.no> writes: >> You might need to also add --without-gconf. > > Ah. That did it. Then the remaining question, then: Bug, feature, or > documentation bug? I can file a bug report, but I am not sure what to > write in it. "Documentation enhancement"? It doesn't matter. File the report, and we will fix it. > - Harald Thanks for testing, and best regards, Michael. ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-07-31 18:32 ` Harald Hanche-Olsen 2012-07-31 18:51 ` Michael Albinus @ 2012-08-01 13:25 ` Steinar Bang 1 sibling, 0 replies; 21+ messages in thread From: Steinar Bang @ 2012-08-01 13:25 UTC (permalink / raw) To: emacs-devel >>>>> Harald Hanche-Olsen <hanche@math.ntnu.no>: > Ah. That did it. Then the remaining question, then: Bug, feature, or > documentation bug? I can file a bug report, but I am not sure what to > write in it. "Using emacs over ssh X11 forwarding makes it impossible to disconnect ssh"? ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-07-31 17:54 ` Michael Albinus 2012-07-31 18:01 ` Harald Hanche-Olsen @ 2012-07-31 18:51 ` Jan Djärv 2012-07-31 19:02 ` Michael Albinus 1 sibling, 1 reply; 21+ messages in thread From: Jan Djärv @ 2012-07-31 18:51 UTC (permalink / raw) To: Michael Albinus; +Cc: Harald Hanche-Olsen, emacs-devel Hello. 31 jul 2012 kl. 19:54 skrev Michael Albinus: > Jan Djärv <jan.h.d@swipnet.se> writes: > >> Hello. > > Hi, > >> Add --without-gsettings also. > > Hmm. If this is the reason for the D-Bus autostart, shouldn't it be set > impicitely when --without-dbus is applied? > --without-dbus means that Emacs should not provide a dbus-interface and not link with dbus, which is doesn't. > And if not, this should be documented, at least. It is hard to document everything that external libraries do. Gsettings happens to start dbus, it does so regardless of what Emacs does. Jan D. ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-07-31 18:51 ` Jan Djärv @ 2012-07-31 19:02 ` Michael Albinus 2012-07-31 20:43 ` Jan Djärv 0 siblings, 1 reply; 21+ messages in thread From: Michael Albinus @ 2012-07-31 19:02 UTC (permalink / raw) To: Jan Djärv; +Cc: Harald Hanche-Olsen, emacs-devel Jan Djärv <jan.h.d@swipnet.se> writes: >> Hmm. If this is the reason for the D-Bus autostart, shouldn't it be set >> impicitely when --without-dbus is applied? > > --without-dbus means that Emacs should not provide a dbus-interface > and not link with dbus, which is doesn't. It does not link libdbus *explicitly*, when --without-dbus is given. > >> And if not, this should be documented, at least. > > It is hard to document everything that external libraries > do. Gsettings happens to start dbus, it does so regardless of what > Emacs does. Maybe we could add a hint in the configure summary, when there is --without-dbus, but not --without-gsettings and --without-gconf. Something like Does Emacs use -ldbus? no Does Emacs use -lgconf? yes You might consider to disable Gconf Does Emacs use GSettings? yes You might consider to disable Gsettings > Jan D. Best regards, Michael. ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-07-31 19:02 ` Michael Albinus @ 2012-07-31 20:43 ` Jan Djärv 2012-07-31 21:09 ` Harald Hanche-Olsen 2012-08-01 8:17 ` Michael Albinus 0 siblings, 2 replies; 21+ messages in thread From: Jan Djärv @ 2012-07-31 20:43 UTC (permalink / raw) To: Michael Albinus; +Cc: Harald Hanche-Olsen, emacs-devel Hello. 31 jul 2012 kl. 21:02 skrev Michael Albinus: > Jan Djärv <jan.h.d@swipnet.se> writes: > >>> Hmm. If this is the reason for the D-Bus autostart, shouldn't it be set >>> impicitely when --without-dbus is applied? >> >> --without-dbus means that Emacs should not provide a dbus-interface >> and not link with dbus, which is doesn't. > > It does not link libdbus *explicitly*, when --without-dbus is given. Yes. >> >>> And if not, this should be documented, at least. >> >> It is hard to document everything that external libraries >> do. Gsettings happens to start dbus, it does so regardless of what >> Emacs does. > > Maybe we could add a hint in the configure summary, when there is > --without-dbus, but not --without-gsettings and --without-gconf. > Something like > > Does Emacs use -ldbus? no > Does Emacs use -lgconf? yes > You might consider to disable Gconf > Does Emacs use GSettings? yes > You might consider to disable Gsettings Why? I usually configure --without-dbus, but want Gsettings. If we for example implement the Unity menubar thing (i.e. kind of like OSX menu bar at the top of the desktop), that will also use dbus. Must we document every feature that might use dbus? We don't have control over that. Jan D. ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-07-31 20:43 ` Jan Djärv @ 2012-07-31 21:09 ` Harald Hanche-Olsen 2012-08-01 12:11 ` Michael Albinus 2012-08-01 8:17 ` Michael Albinus 1 sibling, 1 reply; 21+ messages in thread From: Harald Hanche-Olsen @ 2012-07-31 21:09 UTC (permalink / raw) To: emacs-devel [Jan Djärv <jan.h.d@swipnet.se> (2012-07-31 20:43:16 UTC)] > Why? I usually configure --without-dbus, but want Gsettings. > If we for example implement the Unity menubar thing (i.e. kind of like OSX menu bar at the top of the desktop), that will also use dbus. Must we document every feature that might use dbus? We don't have control over that. Maybe not, but this caused quite a bit of confusion to me. I imagine other people could be in the same situation of wanting to have an emacs daemon running on a server that they can connect to and disconnect from multiple times, and it would be good if we could find a way to help them achieve that. But I admit I don't know enough about dbus or the myriad libraries that emacs uses to offer any good suggestion. I am afraid in the final analysis, if dbus gets into every corner of emacs, that emacs will be inextricably tied to the desktop and will lose some of its utility on servers. That does not seem like a desirable outcome. - Harald ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-07-31 21:09 ` Harald Hanche-Olsen @ 2012-08-01 12:11 ` Michael Albinus 2012-08-01 12:18 ` Harald Hanche-Olsen 0 siblings, 1 reply; 21+ messages in thread From: Michael Albinus @ 2012-08-01 12:11 UTC (permalink / raw) To: Harald Hanche-Olsen; +Cc: emacs-devel Harald Hanche-Olsen <hanche@math.ntnu.no> writes: > I am afraid in the final analysis, if dbus gets into every corner of > emacs, that emacs will be inextricably tied to the desktop and will > lose some of its utility on servers. That does not seem like a > desirable outcome. It's not that simple. D-Bus could also be used by Emacs offering services to other applications. Furthermore, the D-Bus autolaunch feature is active only when there is a connection to X11 (ie $DISPLAY is set). That's not the case for many servers. But I confirm, that we must care about (too much) dependencies on D-Bus. > - Harald Best regards, Michael. ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-08-01 12:11 ` Michael Albinus @ 2012-08-01 12:18 ` Harald Hanche-Olsen 2012-08-01 12:23 ` Michael Albinus 0 siblings, 1 reply; 21+ messages in thread From: Harald Hanche-Olsen @ 2012-08-01 12:18 UTC (permalink / raw) To: michael.albinus; +Cc: emacs-devel [Michael Albinus <michael.albinus@gmx.de> (2012-08-01 12:11:18 UTC)] > Furthermore, the D-Bus autolaunch feature is active only when there is a > connection to X11 (ie $DISPLAY is set). That's not the case for many > servers. Ah, so a workaround would have been to start it as DISPLAY= emacs --daemon and then opening frames with with emacsclient -c, and it would then refrain from launching dbus? That is good to know. It would have solved my problem without any need for compiling with special configure options. - Harald ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-08-01 12:18 ` Harald Hanche-Olsen @ 2012-08-01 12:23 ` Michael Albinus 2012-08-01 13:57 ` Harald Hanche-Olsen 0 siblings, 1 reply; 21+ messages in thread From: Michael Albinus @ 2012-08-01 12:23 UTC (permalink / raw) To: Harald Hanche-Olsen; +Cc: emacs-devel Harald Hanche-Olsen <hanche@math.ntnu.no> writes: > Ah, so a workaround would have been to start it as > > DISPLAY= emacs --daemon > > and then opening frames with with emacsclient -c, and it would then > refrain from launching dbus? That is good to know. It would have > solved my problem without any need for compiling with special > configure options. Maybe, I haven't tested. Please let us know, whether it works. > - Harald Best regards, Michael. ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-08-01 12:23 ` Michael Albinus @ 2012-08-01 13:57 ` Harald Hanche-Olsen 2012-08-01 14:19 ` Harald Hanche-Olsen 0 siblings, 1 reply; 21+ messages in thread From: Harald Hanche-Olsen @ 2012-08-01 13:57 UTC (permalink / raw) To: michael.albinus; +Cc: emacs-devel [Michael Albinus <michael.albinus@gmx.de> (2012-08-01 12:23:51 UTC)] > Harald Hanche-Olsen <hanche@math.ntnu.no> writes: > > > Ah, so a workaround would have been to start it as > > > > DISPLAY= emacs --daemon > > > > and then opening frames with with emacsclient -c, and it would then > > refrain from launching dbus? That is good to know. It would have > > solved my problem without any need for compiling with special > > configure options. > > Maybe, I haven't tested. Please let us know, whether it works. Tried it. Yes, it worked. I have filed a bugreport. I'll report back with the number when I get a response from the bugtracker. - Harald ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-08-01 13:57 ` Harald Hanche-Olsen @ 2012-08-01 14:19 ` Harald Hanche-Olsen 0 siblings, 0 replies; 21+ messages in thread From: Harald Hanche-Olsen @ 2012-08-01 14:19 UTC (permalink / raw) To: emacs-devel [Harald Hanche-Olsen <hanche@math.ntnu.no> (2012-08-01 13:57:10 UTC)] > I have filed a bugreport. I'll report back with the number when I get > a response from the bugtracker. It's number 12112: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12112 - Harald ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-07-31 20:43 ` Jan Djärv 2012-07-31 21:09 ` Harald Hanche-Olsen @ 2012-08-01 8:17 ` Michael Albinus 1 sibling, 0 replies; 21+ messages in thread From: Michael Albinus @ 2012-08-01 8:17 UTC (permalink / raw) To: Jan Djärv; +Cc: Harald Hanche-Olsen, emacs-devel Jan Djärv <jan.h.d@swipnet.se> writes: > Hello. Hi, > Why? I usually configure --without-dbus, but want Gsettings. > If we for example implement the Unity menubar thing (i.e. kind of like > OSX menu bar at the top of the desktop), that will also use dbus. I see your point. Well, let's do it another way. > Must we document every feature that might use dbus? We don't have > control over that. People who want to suppress D-Bus autolaunch are not very familiar with D-Bus, in general. We shall give them some help. D-Bus people know the problem of hanging autolaunched D-Bus sessions over ssh connections, see the discussion in <https://bugs.freedesktop.org/show_bug.cgi?id=32509>. AFAICS, there is no fix integrated yet into the D-Bus sources. Until there is a solution on D-Bus side, we might add a configure option --without-dbus-autolaunch. This would have the same effect as "--without-dbus --without-gconf --without-gsettings" for now, maybe we need to add other libraries later. > Jan D. Best regards, Michael. ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-07-31 14:49 Emacs insists on starting dbus? Harald Hanche-Olsen 2012-07-31 16:56 ` Jan Djärv @ 2012-07-31 17:49 ` Michael Albinus 2012-07-31 18:16 ` Harald Hanche-Olsen 2012-08-01 13:23 ` Steinar Bang 2 siblings, 1 reply; 21+ messages in thread From: Michael Albinus @ 2012-07-31 17:49 UTC (permalink / raw) To: Harald Hanche-Olsen; +Cc: emacs-devel Harald Hanche-Olsen <hanche@math.ntnu.no> writes: > Short version: I built emacs with --without-dbus, > yet when I run emacs -Q, it runs dbus-launch. > > Why? Surely, this is not the way it should be? Nope, it shouldn't. > Slightly longer version: I am on Ubuntu, fresh emacs source from > trunk, and ./config.status -V outputs this: > emacs config.status 24.1.50 > configured by ../configure, generated by GNU Autoconf 2.65, > with options "'--without-dbus' > --prefix=/global/work/hanche/pkg/emacs/2012-07-31' '--with-gif=no' > --with-x-toolkit=lucid'" Since you have disabled dbus by configure option, dbusbind.c shouldn't be linked with the emacs binary. > And here is what happens: > ; strace -f -e execve /global/work/hanche/pkg/emacs/current/bin/emacs -Q > Process 31127 attached > [...] > [pid 31127] execve("/usr/bin/dbus-launch", ["dbus-launch", > "--autolaunch", "2873e88d4c5664b2024eb9654eddd59c", "--binary-syntax", > "--close-stderr"], [/* 205 vars */]) = 0 > [...] This would need more debugging. As said, I don't believe that dbusbind.c is in the way. But there are other libraries known to establish a D-Bus connection, fx in order to connect to the at-spi bus (I have the feeling that it might be in the gtk context, but I'm not sure - you configure for lucid). You might try to find which processes on the remote host run under D-Bus control, started by emacs. Something like this: # sudo grep -l DBUS_SESSION_BUS_ADDRESS /proc/*/environ # ps -p <pid> ### for all returned pid's > A bit of background: This is on a server running as a virtual machine. > I would like to have an emacs daemon running on this server that I can > connect to and use (with x11) when I ssh into the machine. But when I > am done using my emacs windows and have closed them all, ssh still > hangs around when I log out because the dbus process(es) are hanging > onto one or two x11 connections tunneled by ssh. The only workaround I > see is to kill those dbus processes by hand, which is a bother. > > I'd file a bug report, but I wanted to ask here first if this is a bug > or a feature. And if the latter, how do I work around it? It isn't a feature. But it looks like a side-effect of a third party library linked with emacs. I see the following options to handle: - If we know which service(s) autostart D-Bus, we might find a way to suppress them. - The default way to suppress autostart is configuring D-Bus sources with --disable-x11-autolaunch before compilation. But I guess you don't compile D-Bus yourself, it isn't a real option, therefore. - You could try to start emacs remotely with an invalid address, like env DBUS_SESSION_BUS_ADDRESS="invalid address" emacs --daemon ... According to the spec, autolaunch is activated only when $DBUS_SESSION_BUS_ADDRESS is unset. Maybe dbus-launch returns an error then, which is ignored. Not very elegant, but maybe working. > - Harald Best regards, Michael. ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-07-31 17:49 ` Michael Albinus @ 2012-07-31 18:16 ` Harald Hanche-Olsen 0 siblings, 0 replies; 21+ messages in thread From: Harald Hanche-Olsen @ 2012-07-31 18:16 UTC (permalink / raw) To: michael.albinus; +Cc: emacs-devel [Michael Albinus <michael.albinus@gmx.de> (2012-07-31 17:49:49 UTC)] > Since you have disabled dbus by configure option, dbusbind.c shouldn't > be linked with the emacs binary. Okay. Not sure how to make sure it didn't ... I am not too familiar with gnu/linux, coming from the freebsd world myself. > You might try to find which processes on the remote host run under D-Bus > control, started by emacs. Something like this: > > # sudo grep -l DBUS_SESSION_BUS_ADDRESS /proc/*/environ > # ps -p <pid> ### for all returned pid's I find /usr/lib/libgconf2-4/gconfd-2 (plus a bunch of processes owned by other users on the server). > It isn't a feature. But it looks like a side-effect of a third party > library linked with emacs. I see the following options to handle: > > - If we know which service(s) autostart D-Bus, we might find a way to > suppress them. So gconf(d) looks like a prime suspect? > - The default way to suppress autostart is configuring D-Bus sources > with --disable-x11-autolaunch before compilation. But I guess you > don't compile D-Bus yourself, it isn't a real option, therefore. You're right about that one. > - You could try to start emacs remotely with an invalid address, like > > env DBUS_SESSION_BUS_ADDRESS="invalid address" emacs --daemon ... > > According to the spec, autolaunch is activated only when > $DBUS_SESSION_BUS_ADDRESS is unset. Maybe dbus-launch returns an error > then, which is ignored. Not very elegant, but maybe working. Didn't change anything. - Harald ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Emacs insists on starting dbus? 2012-07-31 14:49 Emacs insists on starting dbus? Harald Hanche-Olsen 2012-07-31 16:56 ` Jan Djärv 2012-07-31 17:49 ` Michael Albinus @ 2012-08-01 13:23 ` Steinar Bang 2 siblings, 0 replies; 21+ messages in thread From: Steinar Bang @ 2012-08-01 13:23 UTC (permalink / raw) To: emacs-devel >>>>> Harald Hanche-Olsen <hanche@math.ntnu.no>: [snip!] > I would like to have an emacs daemon running on this server that I can > connect to and use (with x11) when I ssh into the machine. But when I > am done using my emacs windows and have closed them all, ssh still > hangs around when I log out because the dbus process(es) are hanging > onto one or two x11 connections tunneled by ssh. The only workaround I > see is to kill those dbus processes by hand, which is a bother. > I'd file a bug report, but I wanted to ask here first if this is a bug > or a feature. If it's a feature, it is a feature that has annoyed me for a couple of years now. ^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2012-08-01 14:19 UTC | newest] Thread overview: 21+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-07-31 14:49 Emacs insists on starting dbus? Harald Hanche-Olsen 2012-07-31 16:56 ` Jan Djärv 2012-07-31 17:54 ` Michael Albinus 2012-07-31 18:01 ` Harald Hanche-Olsen 2012-07-31 18:15 ` Ken Brown 2012-07-31 18:32 ` Harald Hanche-Olsen 2012-07-31 18:51 ` Michael Albinus 2012-08-01 13:25 ` Steinar Bang 2012-07-31 18:51 ` Jan Djärv 2012-07-31 19:02 ` Michael Albinus 2012-07-31 20:43 ` Jan Djärv 2012-07-31 21:09 ` Harald Hanche-Olsen 2012-08-01 12:11 ` Michael Albinus 2012-08-01 12:18 ` Harald Hanche-Olsen 2012-08-01 12:23 ` Michael Albinus 2012-08-01 13:57 ` Harald Hanche-Olsen 2012-08-01 14:19 ` Harald Hanche-Olsen 2012-08-01 8:17 ` Michael Albinus 2012-07-31 17:49 ` Michael Albinus 2012-07-31 18:16 ` Harald Hanche-Olsen 2012-08-01 13:23 ` Steinar Bang
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.