diff --git a/salt/dom0/gui-user.jinja b/salt/dom0/gui-user.jinja index e723229..a423ff3 100644 --- a/salt/dom0/gui-user.jinja +++ b/salt/dom0/gui-user.jinja @@ -4,6 +4,6 @@ SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. SPDX-License-Identifier: AGPL-3.0-or-later #} -{% set gui_user = salt['cmd.shell']("getent group qubes | awk -F '[:,]' '{print $4}'") -%} -{% set gui_user_id = salt['cmd.shell']("getent passwd " ~ gui_user ~ " | awk -F ':' '{print $3}'") -%} -{% set gui_user_home = salt['cmd.shell']("getent passwd " ~ gui_user ~ " | awk -F ':' '{print $6}'") -%} +{% set gui_user = salt["group.info"]("qubes").get("members")[0] -%} +{% set gui_user_id = salt["user.info"](gui_user).get("uid") -%} +{% set gui_user_home = salt["user.info"](gui_user).get("home") -%}