The warning will still be reported if XAUTHORITY is set but not exported. However, such scenario is unlikely for xinitrc.d scripts environment. Fixes #40745 Signed-off-by: Dmytro Bagrii <dimich.dmb@gmail.com>
16 lines
552 B
Bash
Executable File
16 lines
552 B
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
#
|
|
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
systemctl --user import-environment DISPLAY ${XAUTHORITY+XAUTHORITY}
|
|
|
|
if command -v dbus-update-activation-environment >/dev/null 2>&1; then
|
|
dbus-update-activation-environment DISPLAY XAUTHORITY
|
|
fi
|