]> git.mdlowis.com Git - proto/labwc.git/commit
src/config/session.c: Update dbus / systemd activation environment
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Wed, 27 Jul 2022 23:06:56 +0000 (01:06 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Fri, 29 Jul 2022 05:45:24 +0000 (06:45 +0100)
commitd6ea0d68cfbf1b0b3e174db9919a0f8411a1b43b
tree89cf3056bff6b41d63397c0e83e7e1a9c2be0416
parentb8995e45dc69a94b9292e6bb1a9ec5d5ac4da722
src/config/session.c: Update dbus / systemd activation environment

This allows xdg-desktop-portal-wlr to work out of the box for screen-recording.
If systemd or dbus is not available the environment update will fail gracefully.

This patch will set XDG_CURRENT_DESKTOP=wlroots but a user may change this by
either having the environment variable set before starting labwc or by having
a different value set in ~/.config/labwc/environment.

Based on PR #461 by @Joshua-Ashton
docs/environment
docs/labwc.desktop
src/config/session.c