Skip to content
Snippets Groups Projects
Commit c0b18171 authored by Ruben Rodriguez's avatar Ruben Rodriguez
Browse files

ubiquity: only set up lightdm a11y if lightdm is installed

parent ab0b5282
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# #
VERSION=30 VERSION=31
. ./config . ./config
...@@ -282,12 +282,13 @@ screen-reader=true ...@@ -282,12 +282,13 @@ screen-reader=true
" >> /target/usr/share/glib-2.0/schemas/99_accessibility.gschema.override " >> /target/usr/share/glib-2.0/schemas/99_accessibility.gschema.override
chroot /target glib-compile-schemas /usr/share/glib-2.0/schemas chroot /target glib-compile-schemas /usr/share/glib-2.0/schemas
mkdir -p /target/var/lib/lightdm/.cache/lightdm-gtk-greeter/ if grep -q lightdm /target/etc/passwd; then
echo "[a11y-states] mkdir -p /target/var/lib/lightdm/.cache/lightdm-gtk-greeter/
reader=true" > /target/var/lib/lightdm/.cache/lightdm-gtk-greeter/state echo "[a11y-states]
reader=true" > /target/var/lib/lightdm/.cache/lightdm-gtk-greeter/state
chroot /target chown ligthdm.lightdm /var/lib/lightdm/ -R chroot /target chown lightdm.lightdm /var/lib/lightdm/ -R
chmod 750 /target/var/lib/lightdm/ chmod 750 /target/var/lib/lightdm/
fi
else else
echo "Accessibility profile set to none, disabling screen reader by default in target system" echo "Accessibility profile set to none, disabling screen reader by default in target system"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment