bug#31168: 27.0.50; dconf spews warnings on Emacs startup

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

bug#31168: 27.0.50; dconf spews warnings on Emacs startup

Lars Ingebrigtsen

When I start Emacs, I get several screenfuls of this:

(emacs:22926): dconf-CRITICAL **: unable to create file '/run/user/1000/dconf/user': Permission denied.  dconf will not work properly.

(emacs:22926): dconf-CRITICAL **: unable to create file '/run/user/1000/dconf/user': Permission denied.  dconf will not work properly.

(emacs:22926): dconf-CRITICAL **: unable to create file '/run/user/1000/dconf/user': Permission denied.  dconf will not work properly.

I assume that this means that my Emacs is compiled with settings that
aren't present when I'm running Emacs, but I think Emacs shouldn't be
outputting these messages, either.  "CRITICAL".  (I don't care about
"dconf", whatever that is.)

If it is Emacs that's outputting it, that is, and not some library we
have no way of shutting up?


In GNU Emacs 27.0.50 (build 7, x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
 of 2018-04-15 built on corrigan
Repository revision: 1c16fbd1b281a46b07028ca78dbaab9a0ec6fd2f
Windowing system distributor 'The X.Org Foundation', version 11.0.11902000
System Description: Debian GNU/Linux 9 (stretch)


--
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Reply | Threaded
Open this post in threaded view
|

bug#31168: 27.0.50; dconf spews warnings on Emacs startup

Glenn Morris-3
Lars Ingebrigtsen wrote:

> When I start Emacs, I get several screenfuls of this:
>
> (emacs:22926): dconf-CRITICAL **: unable to create file
> /run/user/1000/dconf/user': Permission denied. dconf will not work
> properly.

Is this after "su" by any chance?

If so, this is not specific to Emacs.
See eg explanation at https://bugs.debian.org/772910#15
and https://bugzilla.redhat.com/show_bug.cgi?id=753882

If not after su, then I guess your desktop session didn't initialize
properly, or somesuch.




Reply | Threaded
Open this post in threaded view
|

bug#31168: 27.0.50; dconf spews warnings on Emacs startup

Lars Ingebrigtsen
Glenn Morris <[hidden email]> writes:

> Is this after "su" by any chance?

Hm...  I may have su-d at some point, but this is as my own user, but
you may be onto something:

larsi@corrigan:~$ ls -l /run/user/1000/dconf/user
-rw------- 1 root root 2 Apr 15 21:36 /run/user/1000/dconf/user

That file is owned by root, so ...  er...  I may have su-d and started
an Emacs before and that left that file behind?

--
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



Reply | Threaded
Open this post in threaded view
|

bug#31168: 27.0.50; dconf spews warnings on Emacs startup

Robert Pluim
Lars Ingebrigtsen <[hidden email]> writes:

> Glenn Morris <[hidden email]> writes:
>
>> Is this after "su" by any chance?
>
> Hm...  I may have su-d at some point, but this is as my own user, but
> you may be onto something:
>
> larsi@corrigan:~$ ls -l /run/user/1000/dconf/user
> -rw------- 1 root root 2 Apr 15 21:36 /run/user/1000/dconf/user
>
> That file is owned by root, so ...  er...  I may have su-d and started
> an Emacs before and that left that file behind?

Youʼre running some variant of Debian, so 1000 is your uid, I
assume. Those files are owned by the user with uid 1000 on my debian
box.

Robert



Reply | Threaded
Open this post in threaded view
|

bug#31168: 27.0.50; dconf spews warnings on Emacs startup

Glenn Morris-3
In reply to this post by Lars Ingebrigtsen
Lars Ingebrigtsen wrote:

> larsi@corrigan:~$ ls -l /run/user/1000/dconf/user
> -rw------- 1 root root 2 Apr 15 21:36 /run/user/1000/dconf/user
>
> That file is owned by root, so ...  er...

That's definitely wrong.

> I may have su-d and started an Emacs before and that left that file
> behind?

Sounds plausible (and should be easy to test), but in any kind of modern
desktop environment I would expect that file to be created with
appropriate permissions when you first login to a graphical session.
Maybe this was in a ssh login or somesuch though?
Anyway, I don't think it's an Emacs issue, really.
It's certainly not new, eg https://bugzilla.redhat.com/show_bug.cgi?id=921689 .



Reply | Threaded
Open this post in threaded view
|

bug#31168: 27.0.50; dconf spews warnings on Emacs startup

Lars Ingebrigtsen
Glenn Morris <[hidden email]> writes:

> Sounds plausible (and should be easy to test), but in any kind of modern
> desktop environment I would expect that file to be created with
> appropriate permissions when you first login to a graphical session.
> Maybe this was in a ssh login or somesuch though?

It could be.

> Anyway, I don't think it's an Emacs issue, really.

Nope.  So I'm closing this bug report.

Thanks for the help.

--
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no