X11 Dependency, Compile Dbus without X11, starting only Shell C++ Applications Raspbian Linux X11 Dependency, Compile Dbus without X11, starting only Shell C++ Applications Raspbian Linux linux linux

X11 Dependency, Compile Dbus without X11, starting only Shell C++ Applications Raspbian Linux


Great post. You obviously had more diligence than I; I ended up running a display buffer instead.

but one question is left, how can i do it automatically?

Since

$dbus-launch 

outputs the bus info to standard out, did you try just running the program after? For instance

$dbus-launch ./server

The dbus-launch man page says:

You may specify a program to be run; in this case, dbus-launch will launch a session bus instance, set the appropriate environment variables so the specified program can find the bus, and then execute the specified program, with the specified arguments. See below for examples.

If you launch a program, dbus-launch will not print the information about the new bus to standard output.


but one question is left, how can i do it automatically?

take a look at dbus-launch manual:

backticks or the $() construct can be used to read information from dbus-launch.