Skip to content

Commit

Permalink
Fix issue with dbus-launch on Jammy
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalsleuth committed Jan 8, 2023
1 parent 53cd07b commit 8c5aa85
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mat/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2022.5.3
v2022.5.4
11 changes: 8 additions & 3 deletions mat/theme/terminal.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
{%- else -%}
{%- set home = salt['user.info'](user).home -%}
{%- endif -%}
{%- set dbus_address = salt['cmd.run']("dbus-launch | grep DBUS_SESSION_BUS_ADDRESS | cut -d= -f2-", shell="/bin/bash", runas=user, cwd=home, python_shell=True) -%}

include:
- mat.apt-packages.git
Expand Down Expand Up @@ -39,9 +38,15 @@ mat-theme-terminal-profile-install:
- runas: {{ user }}
- cwd: {{ home }}
- shell: /bin/bash
- env:
- DBUS_SESSION_BUS_ADDRESS: "{{ dbus_address }}"
- onlyif:
- fun: cmd.run
cmd: export DBUS_SESSION_BUS_ADDRESS=$(dbus-launch | grep DBUS_SESSION_BUS_ADDRESS | cut -d= -f2-)
shell: /bin/bash
python_shell: True
runas: {{ user }}
- require:
- file: mat-theme-terminal-profile
- sls: mat.apt-packages.dbus-x11
- watch:
- file: mat-theme-terminal-profile
- sls: mat.apt-packages.dbus-x11

0 comments on commit 8c5aa85

Please sign in to comment.