-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] What is equivalent of 'dbus-run-session' command? #145
Comments
There is currently no equivalent to However, the launcher can be used for custom buses already (at-spi2 does that, for example). We want to be aware of these use-cases, though. So why exactly do you need It is definitely possible to write something like dbus-run-session for dbus-broker, but I'd like not to, unless really necessary. So I first want to get a feeling why you use the tool, and maybe you can use some drop-in dbus-broker replacement already. |
I'm using what upstream currently provides so it isn't config or distro dependent. I noticed that starting plasma-wayland session script directly without dbus like: |
Perfect! Most distributions use systemd to start user and system buses these days. So the old session-bus-starter is obsolete. Back in the old days someone had to start the dbus session bus, so most desktop environments simply wrapped their start-up script in I am not sure what to do. I guess we should at least properly document this and recommend to everyone to drop the tool from their scripts. |
What is the recommended way to run a nested dbus session, if not by using |
We don't have a recommended way to do that. If that functionality is needed, it should be straightforward to achieve by just invoking your private instance of If, however, you intend to integrate it into a test-suite, I would rather expect the test-suite to create the listener manually and pass it through |
Hi @dvdhrm I used to use commands like this in my scripts: |
To the best of my knowledge, this will still work on F30. The |
@dvdhrm thank you for your response, this guide me to found the command in the package dbus-daemon for now, I'll stay tuned to this thread if dbus-broker it's going to expose this functionality in the future, thanks again. |
Right, it remains in the |
@dvdhrm This issue was reported at KDE upstream but it seems they don't have ideas how to deal with it currently. |
@Maryse47 Errrr, I am confused why so many people use I can understand why one would use Maybe someone can enlighten me here? I must be missing something.. |
FWIW, I use |
@dvdhrm you have to ask kde folks. The current state where user ends up with running two different dbus implementations at the same time is not healthy. |
I think that's indeed the exact use-case. |
am using:
on the command line, or in .bash_profile, to start GNOME, no GDM. as described here: shutdown, logout does not work anymore:
|
If available, the "dbus-run-session" command, is used by the "Ubiquitous Bash" FakeHome 'virtualization' system, probably to further strip away any dependency on the user's own actual "$HOME" directory. In turn, this system is used by "webClient" to force web browsers (eg. FireFox, Chrome), filesystem browsers (eg. Dolphin), and similar programs to keep all files in subdirectories. In the future, other similar programs (eg. Arduino, gEDA/pcb2gcode), may be similarly contained. Ultimately, 'dbus-run-session' may be a necessary workaround as part of a system to ensure programs may be configured independently of any global "$HOME" directory. |
@dvdhrm I have a similar use-case for the use of In my case this is for the Ansible (configuration management system) Personally I use In case of Ansible, very often you will log-in (via SSH) with some pre-defined administrative account, and then switch to different users as necessary to run commands etc. While the initial login will result in a D-Bus user session getting set-up, the switch using e.g. Therefore, the Given the existing example of |
Don't worry, it's not going anywhere, because a ton of software depends on dbus-run-session. :P |
Hi mister @mcatanzaro jokes aside, I am deeply concerned about the retirement at some point of the functionality of dbus-run-session I come from a developing country and I don't have the technical knowlegde to use other than methods than the recommended way to do the changes in gsettings for another users via gnome-terminal, may be it's just my zero knowledge about it, but with god as my witness I can't find in internet another way to do it, I use this method primary to change the behaviour of the GDM in a couple of laptops in a classroom and for change settings in the accounts for GNOME applications for some students that has special necessities, maybe itsn't «a ton of software depends on», but what it's the replacement for it that dbus-broker propose or there is something that GNOME project needs to figure out? |
Thing is, there really is no replacement for dbus-run-session: that's why this issue report exists. Since dbus-run-session is used in tons of places, and there is no known alternative, I'm confident that dbus-daemon is going to stick around indefinitely, if only to provide this command. (At least until something else is written to replace dbus-run-session.) |
Hi mister @mcatanzaro thanks for the explanation, I understand better now what do mean in your first reply, and a special thanks for take the time to make it easy to understand, it's mean a lots to me, good sir |
Is this offer still valid? The use case is: use one simple command to start a D-Bus session in a CI environment (usually a container where it's very unlikely that systemd is running, if it exists at all).
That's comparatively hard, though. When you're trying to provide bus access in a CI template, you don't want to be writing custom code. |
My question was: Why is |
Well it is suitable for that, sure. (Unless you're specifically trying to run tests with dbus-broker.) But then we cannot ever get rid of dbus-daemon. I had assumed that the goal of dbus-broker was to obsolete dbus-daemon? It kinda seems like you've got 98% of the way, hit a small obstacle, and then gave up for no clear reason. |
I personally don't want to get rid of dbus-daemon. The D-Bus team (and Smcv in particular) is doing a splendid job of keeping it inline with the specification, supporting niche targets, maintaining a test-infrastructure for the entire specification, and providing a reference implementation to anyone interested in writing servers. In particular the compatibility to historical oddities and peculiarities is not something we intend to replicate in dbus-broker. I do appreciate not requiring dependencies to dbus-daemon on production systems, but I believe this is already the case.
I don't believe this assessment reflects our efforts. |
The lack of dbus-run-session is also somehow problematic for Ubuntu where from a desktop perspective we are trying to switch from dbus-daemon to dbus-broker by default. The Ubuntu rules for promotion to the main component encourage to support only one solution to a problem, which means to have dbus-broker accepted we should moving dbus-daemon out of our default set. gdm currently depends on dbus-run-session to start its greeter session as explained by their source comment |
Can we please see a dbus-broker version of |
PR #321 provides a possible solution, for anyone interested. |
@seb128 Many thanks for your insights. Please remember to permalink URLs (where possible) so future viewers don’t get dead links:
|
Currently KDE plasma wayland session is started as
Exec=dbus-run-session /usr/bin/startplasmacompositor
. How to change it to use dbus-broker instead?The text was updated successfully, but these errors were encountered: