Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Very unusual behaviour with DBus and ssh?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
mi_unixbird
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jul 2015
Posts: 102

PostPosted: Thu Aug 18, 2016 2:03 pm    Post subject: Very unusual behaviour with DBus and ssh? Reply with quote

So a remote login to the box as user with OpenSSH some how in the initial environment sets DBUS_SESSION_BUS_ADDRESS correctly to match the DBUS_SESSION_BUS_ADDRESS of the graphical desktop on DISPLAY=:0 if DISPLAY=:0 is taken by my user, it DISPLAY=:0 is _not_ taken by my user in any way it will set it to the _last_ value when that was the case.

This isn't a systemd system, should be noted

Some testing I did concluded:

- it is set before /etc/profile is even sourced (put env | grep ^DBUS at the top of /etc/profile to verify)
- it does not happen when I log in through a VT,only when I ssh in
- my first guess was that it took it from the files in ~/.dbus/session-bus but I edited and deleted those files and it doesn't seem to get them from there either, I have no idea now where it gets them from

I talked to the guys at #dbus about it and they from the behaviour supplied seem to think it's the cause of Gentoo implementing some kind of systemd-like single-user-session functionality, they are actually interested in upstreaming this if it's true and not too complex

Some further things about my system:

- I do not use OpenRC either, I use runit
- I do not use any login manager, traditional *kitless single user system
- I do not use PAM

So I'm really interested where exactly this variable is being set and how it obtains the proper value.
_________________
execctl --path exec filectl --current-directory list
Back to top
View user's profile Send private message
mi_unixbird
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jul 2015
Posts: 102

PostPosted: Thu Aug 18, 2016 3:59 pm    Post subject: Reply with quote

Woops, found the answer, it's less spectacular than I thought, it comes from Tmux.

Basically the first time the Tmux server is started is inside the X display, so it gets the environment variable in the server and for some reason every time it spawns a client it passes it on.
_________________
execctl --path exec filectl --current-directory list
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum