Re: dbus-run-session output.

Simon Lees <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <[email protected]>

On 04/08/2017 10:29 AM, Thiago Macieira wrote:
> Em sexta-feira, 7 de abril de 2017, às 04:49:37 PDT, Simon Lees escreveu:
>>> I'm curious why your users don't already have a D-Bus session bus?
>>> In other distributions such as Debian and Fedora, the session bus is
>>> automatically started by general OS integration infrastructure:
>>
>> I am equally curious, I think in this case the user is doing something
>> like using i3m and I have no idea how its been launched, gnome, kde and
>> enlightenment all launch with a systemd user session and seem to be fine.
> 
> We're not.
> 
> $ echo $DBUS_SESSION_BUS_ADDRESS 
> unix:path=/run/user/1000/bus
> $ emacs
> Activating service name='org.gnome.GConf'
> Successfully activated service 'org.gnome.GConf'
> 
>>> This seems like something that OS integrators should be providing, rather
>>> than something individual users should be wrapping around their emacs
>>> processes?
>>
>> Yeah I agree, atleast in this case its a emacs launch script shipped by
>> the distro doing the wrapping so the users aren't seeing it on there own.
> 
> It seems the problem is that the session bus launched by whatever the distro 
> uses did not fill in ~/.dbus/session-bus/$MACHINEID-0.
> 
> On my system:
> $ cat ~/.dbus/session-bus/`cat /etc/machine-id`-*
> # This file allows processes on the machine with id 
> a6201b12a16264429955cb345721054e using 
> # display :0 to find the D-Bus session bus with the below address.
> # If the DBUS_SESSION_BUS_ADDRESS environment variable is set, it will
> # be used rather than this file.
> # See "man dbus-launch" for more details.
> DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/1000/bus'
> DBUS_SESSION_BUS_PID=60268
> DBUS_SESSION_BUS_WINDOWID=4194305
> 
> But:
> $ LC_ALL=C ls -l ~/.dbus/session-bus/                
> total 4
> -rw-r--r-- 1 tjmaciei users 422 Feb  9 17:44 
> a6201b12a16264429955cb345721054e-0
> $ ps 60268
>    PID TTY      STAT   TIME COMMAND
> $ xprop -id 4194305
> X Error of failed request:  BadWindow (invalid Window parameter)
>   Major opcode of failed request:  21 (X_ListProperties)
>   Resource id in failed request:  0x400001
>   Serial number of failed request:  12
>   Current serial number in output stream:  12
> 
> This file is stale. So the launcher failed to create the file as needed.
> 

I'm seeing the same on this openSUSE tumbleweed machine, although my
openSUSE Leap machine is fine, I guess i'm looking into this further
next week.

-- 

Simon Lees (Simotek)                            http://simotek.net

Emergency Update Team                           keybase.io/simotek
SUSE Linux                           Adelaide Australia, UTC+10:30
GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B

_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEED0hBIYMo9ADHKtZgEdQumr4Y/JEFAljoQ7IACgkQEdQumr4Y
/JEy1Qf/SVknbq61UdyW4v7kqgB3DblbTIUBRpGYYYIF0UtLuxMGeD+q5+PTqDah
/ly8SS8hWJMZUKm1p6TZNwLqHhfipdx6rhAPQwphpAWB1WxOj1hKEDai+muug+Ok
4rQDI4QuB2UAr2adWaN/nr9ssFU3jzbu9qmJikVVggnHt5QdOqB4gJl/rbXF735z
uhQsNPieQqGU8wYFNrHWNMFIMpJnh9dOhFjAg7WR9aepLQ/h8pDdJGbkuI4X4oZl
+AnsMewEdeByVeMh4RkdnREl9rzMUWId5nf8cENJJBLSY6HZcEY00OSDVX2uot2K
PluM0nBI+49Pg2lqVPFWbHBKYYM3NQ==
=phfD
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.