Skip to content

Commit

Permalink
work on wayland errata
Browse files Browse the repository at this point in the history
  • Loading branch information
aerickson committed Apr 16, 2024
1 parent 8c5ae7b commit 74c850d
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions scripts/ubuntu-jammy-from-community-gui/06-wayland_errrata.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
#!/bin/bash

set -exv

# init helpers
helpers_dir=${MONOPACKER_HELPERS_DIR:-"/etc/monopacker/scripts"}
for h in ${helpers_dir}/*.sh; do
. $h;
done

# see https://github.com/mozilla-platform-ops/monopacker/issues/138


#
# dconf settings
#

# /etc/dconf/profile/user should have (no leading spaces):
#
# user-db:user
# system-db:local
cat > /etc/dconf/profile/user << EOF
user-db:user
system-db:local
EOF

# /etc/dconf/db/local.d/00-tc-gnome-settings should have (no leading spaces):
#
# # /org/gnome/desktop/session/idle-delay
# [org/gnome/desktop/session]
# idle-delay=uint32 0
#
# # /org/gnome/desktop/lockdown/disable-lock-screen
# [org/gnome/desktop/lockdown]
# disable-lock-screen=true
cat > /etc/dconf/db/local.d/00-tc-gnome-settings << EOF
# /org/gnome/desktop/session/idle-delay
[org/gnome/desktop/session]
idle-delay=uint32 0
# /org/gnome/desktop/lockdown/disable-lock-screen
[org/gnome/desktop/lockdown]
disable-lock-screen=true
EOF

# make dbus read the new configuration
sudo dconf update

# test
ls -hal /etc/dconf/db/


#
# gdm3 settings
#

# in [daemon] block of /etc/gdm3/custom.conf we need:
#
# XorgEnable=false

# TODO: how to do this? augeas or crudini?
# - https://superuser.com/questions/155418/is-there-a-program-script-to-modify-conf-files

apt install -y crudini
crudini --set ./custom.conf daemon XorgEnable 'false'

cat /etc/gdm3/custom.conf
grep 'XorgEnable' /etc/gdm3/custom.conf


#
#
#

0 comments on commit 74c850d

Please sign in to comment.