[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dng
Subject:    Re: [DNG] Missing /run/user/$uid
From:       Ludovic =?UTF-8?B?QmVsbGnDqHJl?= <belliere.ludovic () proximus ! be>
Date:       2020-11-11 1:58:47
Message-ID: 20201111025847.44bc35cd () Aasterinian ! home
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hello Alessandro,

Consolekit doesn't handle the /run/user stuff quite well.
XDG_RUNTIME_DIR isn't being populated and the user folder not
initialized. A workaround I came up with, to make sure XDG_RUNTIME_DIR
is always populated, is to insert the following lines in
your .xsessionrc:

if [ ! -d "$XDG_RUNTIME_DIR" ] && [ -d "/run/user/$(id -u)/" ]; then
    export XDG_RUNTIME_DIR="/run/user/$(id -u)/"
fi

If XDG_RUNTIME_DIR is populated but the folder doesn't exists, then
follow Gregory's indications.

Cheers,
Ludovic

On Tue, 10 Nov 2020 13:41:25 +0100
Alessandro Vesely via Dng <dng@lists.dyne.org> wrote:

> Hi all,
> 
> I create a terminal window for a different user using a script like
> so: #! /bin/bash
> #
> # Extract auth of current user and run x-terminal-emulator in new user
> 
> printf -v altgksu 'export DISPLAY=:0; touch ~/.Xauthority; echo "%s"|
> xauth nmerge -; dbus-launch --exit-with-x11 x-terminal-emulator;'
> "$(xauth nextract - $DISPLAY)" su -l -c "$altgksu" $1
> 
> 
> When $1 is not root, I get errors from, e.g., geany, when it tries to
> create a "uim" subdirectory:
> 
> stat("/run/user/111/uim", 0x7ffee78a9180) = -1 ENOENT (No such file
> or directory) mkdir("/run/user/111/uim", 0700)        = -1 ENOENT (No
> such file or directory) write(2, "uim_helper_get_pathname()
> failed"..., 33) = 33
> 
> There is no folder 111 in /run/user.  Should I create it in the above
> script?  But then, who created /run/user/0?
> 
> 
> Best
> Ale

[Attachment #5 (application/pgp-signature)]
[Attachment #6 (text/plain)]

_______________________________________________
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic