Re: console-kit-daemon[5142]: GLib-GIO-CRITICAL: g_dbus_message_new_signal: assertion 'g_variant_is_object_path (path)' failed

From: Gleb Popov <arrowd_at_freebsd.org>
Date: Thu, 14 Nov 2024 15:10:09 UTC
On Thu, Nov 14, 2024 at 5:37 PM Mohammad Noureldin
<mohammad@thelightbird.com> wrote:
>
> This is the whole idea behind auto-configuration, that you don't need this anymore. When you follow the explanations from the article I've shared in my previous email, you should end up with configurations similar to these:
>
> $ cat /usr/local/share/X11/xorg.conf.d/20-intel-outputclass.conf
> Section "OutputClass"
>     Identifier "intel"
>     MatchDriver "i915kms"
>     Driver "modesetting"
>     Option "PrimaryGPU" "yes"
> EndSection
>
> $ cat /usr/local/share/X11/xorg.conf.d/20-nvidia-drm-outputclass.conf
> Section "OutputClass"
>     Identifier "nvidia"
>     MatchDriver "nvidia-drm"
>     Driver "nvidia"
>     ModulePath "/usr/local/lib/nvidia/xorg"
>     ModulePath "/usr/local/lib/xorg/modules"
> EndSection
>
> In this case I have set the iGPU, from Intel, as the Primary GPU.
>

This is all correct except you shouldn't edit files under
/usr/local/share. Instead you should create a new config file in
/usr/local/etc and override values you want there.

Speaking of the consolekit problem, it tries to mimic systemd's login1
API, but it doesn't provide 100% compatibility yet. Some Wayland stuff
may call into that and bump into these incompatibilities. I'm slowly
working on consolekit in my free time, so maybe this will get fixed in
the near future.