ubiquity: only set up lightdm a11y if lightdm is installed
This commit is contained in:
parent
ab0b528277
commit
c0b1817169
1 changed files with 8 additions and 7 deletions
|
|
@ -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
|
||||||
" >> /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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue