On 2018-08-12 17:33:22 -0500, Rob Browning wrote:
> Vincent Lefevre <vinc...@vinc17.net> writes:
> > The answer is to build Emacs with "--without-gsettings".
> 
> That's not how I read the thread, or rather it sounded like they were
> saying that it's not a general solution, but it might be fine for a
> custom build for you.
> 
> i.e. I read the thread more as emacs is "working as designed" for
> current libraries, desktops, etc.

Well, there's a bug, and this bug must be fixed somewhere, by building
emacs with --without-gsettings if not fixed anywhere else.

For GNOME users, GNOME has its own editor anyway.

> But if you want --without-gsettings, then perhaps you could just switch
> to the emacs-lucid or emacs-nox packages, they've been building
> --without-gsettings since 24.3+1-2.  (Though I suspect you may well hit
> other similar problems in the long run.)

I want an X interface, so that emacs-nox is not OK. I had used the
lucid version in the past when Emacs was affected by a GTK bug, but
IIRC, there were some rendering issues of this interface. Moreover,
emacs-lucid cannot be installed due to a conflict with emacs-calfw.

> Alternately, you could "apt build-dep emacs25" (or emacs-gtk if you're
> using sid), and "fakeroot debian/rules binary" after adjusting the
> debian/rules confflags to build your own gtk version
> --without-gsettings.

Yes, but that's annoying.

> Or, as I've seen suggested elsewhere, you might consider switching from
> the potentially fraught approach of using su, to a tramp or sudoedit
> based approach (since it doesn't sound like emacs upstream expects the
> su approach to ever necessarily avoid this kind of issue -- gsettings or
> not).

I often need to do other things from root (e.g. daemon stop/start),
not just edit files.

The current workaround is to unset XDG_RUNTIME_DIR completely (this is
sufficient for Emacs and doesn't affect dbus), but this might yield
other issues and bug reports...

But in any case, the bug needs to be fixed.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to