Skip to content

Commit cc097c0

Browse files
author
Derek
committed
fix: use system dconf profile for RDP animation disable
community.general.dconf requires a D-Bus session which doesn't exist over SSH, causing failures on headless deploys. Switch to system-wide profile in /etc/dconf/db/local.d/ which works without a session bus.
1 parent a2f7ae8 commit cc097c0

2 files changed

Lines changed: 25 additions & 9 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# RDP performance optimisations for GNOME desktop
2+
# Deployed to /etc/dconf/db/local.d/00-rdp-performance
3+
# Run 'dconf update' after changes
4+
5+
[org/gnome/desktop/interface]
6+
enable-animations=false

ansible/roles/rdp/tasks/dconf.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,33 @@
11
---
22
# GNOME dconf settings for RDP optimization
3+
# Uses system-wide dconf profile (/etc/dconf/db/local.d/) instead of
4+
# per-user dconf writes, which require a D-Bus session and fail over SSH.
35

46
# Note: Most RDP settings are configured via grdctl in service.yml
5-
# This file handles GNOME desktop optimizations for RDP performance
6-
# psutil is installed in developer/tasks/init.yml (consolidated there for all GNOME tasks)
7+
# This file handles GNOME desktop optimisations for RDP performance
78

8-
- name: Disable GNOME animations for RDP performance
9-
community.general.dconf:
10-
key: "/org/gnome/desktop/interface/enable-animations"
11-
value: "false"
12-
state: present
13-
become: false
9+
- name: Deploy RDP performance dconf profile
10+
ansible.builtin.copy:
11+
src: dconf-rdp-performance
12+
dest: /etc/dconf/db/local.d/00-rdp-performance
13+
mode: '0644'
14+
register: rdp_dconf_deployed
1415
when:
1516
- ansible_facts['distribution'] in ['Fedora', 'Ubuntu']
1617
- has_gnome
1718

19+
- name: Update dconf database
20+
ansible.builtin.command:
21+
cmd: dconf update
22+
when:
23+
- ansible_facts['distribution'] in ['Fedora', 'Ubuntu']
24+
- has_gnome
25+
- rdp_dconf_deployed.changed | default(false)
26+
changed_when: true
27+
1828
- name: Display dconf status
1929
ansible.builtin.debug:
20-
msg: "GNOME Remote Desktop configured via grdctl (system service mode) - animations disabled for RDP performance"
30+
msg: "GNOME Remote Desktop configured via grdctl (system service mode) - animations disabled via system dconf profile"
2131
when:
2232
- ansible_facts['distribution'] in ['Fedora', 'Ubuntu']
2333
- has_gnome

0 commit comments

Comments
 (0)