winft / disman

Qt/C++ display management library
GNU Lesser General Public License v2.1
2 stars 1 forks source link

Automatic fallback to in-process mode when D-Bus not available #15

Open romangg opened 4 years ago

romangg commented 4 years ago

Currently one has to set the environment variable DISMAN_IN_PROCESS to have the consumer run the backend in-process. Even when D-Bus is not available and trying to have an out-of-process backend would fail.

We could do an automatic fallback in this case to an in-process backend.

On the other side Disman without the D-Bus backend does not always work correctly with more than one consumer and this might be a hidden issue then. Requiring to set the environment variable manually makes sure the user knows what he is getting himself into.

Also in most cases D-Bus should be available. Are there counter-examples?