Re: dbus-run-session output.

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

On 04/11/2017 01:14 AM, Thiago Macieira wrote:
> Em segunda-feira, 10 de abril de 2017, às 04:37:18 PDT, Simon McVittie 
> escreveu:
>>> $ echo $DBUS_SESSION_BUS_ADDRESS
>>> unix:path=/run/user/1000/bus
>>> $ emacs
>>> Activating service name='org.gnome.GConf'
>>> Successfully activated service 'org.gnome.GConf'
>>
>> So the issue here seems to be that the emacs launcher is second-guessing
>> how dbus-launch works:
>> https://build.opensuse.org/package/view_file/openSUSE:Factory/emacs/emacs.sh
>> ?expand=1 and preferring to use dbus-run-session if both dbus-launch and
>> dbus-run-session are available.
> 
> My guess is that it does that after getting screen-inherited invalid 
> DBUS_SESSION_BUS_ADDRESS variables.
> 
>>> It seems the problem is that the session bus launched by whatever the
>>> distro uses did not fill in ~/.dbus/session-bus/$MACHINEID-0.
>>
>> Correct, the systemd user unit does not fill in ~/.dbus/session-bus.
>>
>> I would really prefer not to keep that mechanism forever - we have already
>> been asked to stop putting this "autolaunch crap" in the home directory
>> <https://bugs.freedesktop.org/show_bug.cgi?id=35887>. I had hoped that
>> the user-session service (which is already opt-in, so openSUSE's dbus
>> maintainer should hopefully have evaluated its impact before opting in)
>> was an opportunity to draw a line and get away from those historical
>> oddities.
> 
> The file is the only way to get session bus information from regular scripts. I 
> use them myself in an NM-launched script that changes the proxy information 
> when connecting to different networks.
> 

I did some testing on a fresh install with openbox presumably with
nothing fancy happening, I have no ~/.dbus directory and the output of
systemctl status user-1000.slice (trimmed) seems to indicate its running
as a systemd service, i'm guessing thats what you were after Simon.

● user-1000.slice - User Slice of simon
   Loaded: loaded (/run/systemd/transient/user-1000.slice; transient;
vendor preset: disabled)
Transient: yes
   Active: active since Tue 2017-04-11 10:07:21 ACST; 24min ago
    Tasks: 85 (limit: 10813)
   CGroup: /user.slice/user-1000.slice
           ├─session-2.scope
           │ └─2625 /usr/bin/pulseaudio --start --log-target=syslog
           ├─session-4.scope
           │ ├─15052 lightdm --session-child 13 20
           │ ├─15077 /usr/bin/gnome-keyring-daemon --daemonize --login
           │ ├─15079 /usr/bin/openbox --startup
/usr/lib/openbox-autostart OPENBOX
          ......
           │ └─16796 systemctl status user-1000.slice
           └─user-HmGangybm7RTDjBF/[email protected]
             ├─at-spi-dbus-bus.service
             │ ├─6358 /usr/lib/at-spi2/at-spi-bus-launcher
             │ └─6363 /bin/dbus-daemon
--config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork
--print-address 3
             ├─dbus.service
             │ ├─2117 /bin/dbus-daemon --session --address=systemd:
--nofork --nopidfile --systemd-activation
             │ ├─6481 /usr/lib/goa-daemon
             │ └─6491 /usr/lib/goa-identity-service
            ......
             └─init.scope
               ├─2095 /usr/lib/systemd/systemd --user
               └─2096 (sd-pam)

-- 

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/JEFAljsLW8ACgkQEdQumr4Y
/JGuTAf/aYCuckep6BpVRU69qzLQ1k3JCKTCuMa0rwH9Wq2jbp/Z7Ra78g+JeJVz
ZV9QZVbDFN1MunbY4TkTsGMbPGYCwzyaOdDKO1jM6eRUst+pCSPueAuc7fP74428
7MFfvC29ejycPhOe5qaADVaQjFLN6ltFo3lVHRAays6J47qt2SGgkX9wgNj+XcKs
wP5jlf0DlYZmllWJ2iSImBKzDcEaunPWw7MfhkARssuZ6wgEov/2L9bbobCzQ+62
PO6zBvU9FHftG37MPEo9JtFI8Sv81hFFKmEBNkyd8riq9NtdQWbR5MQnR2xy5wTz
gUiuQN4swOyNS9TKJ4s+WsDeae5BdQ==
=Zcus
-----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.