lightdm-gtk-greeter: add a wrapper to orca to prevent initialization errors with pulseaudio
This commit is contained in:
parent
588d59d83a
commit
38d6b28f96
1 changed files with 25 additions and 11 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014-2018 Ruben Rodriguez <ruben@trisquel.info>
|
# Copyright (C) 2014-2022 Ruben Rodriguez <ruben@trisquel.info>
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
|
@ -17,7 +17,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=2
|
VERSION=3
|
||||||
COMPONENT=main
|
COMPONENT=main
|
||||||
|
|
||||||
. ./config
|
. ./config
|
||||||
|
|
@ -43,17 +43,31 @@ cat << EOF > debian/01_trisquel.conf
|
||||||
# screensaver-timeout = Timeout (in seconds) until the screen blanks when the greeter is called as lockscreen
|
# screensaver-timeout = Timeout (in seconds) until the screen blanks when the greeter is called as lockscreen
|
||||||
#
|
#
|
||||||
[greeter]
|
[greeter]
|
||||||
background=/usr/share/backgrounds/flidas.jpg
|
background=/usr/share/backgrounds/aramo.jpg
|
||||||
theme-name=Trisquel
|
theme-name=Trisquel-dark
|
||||||
icon-theme-name=Trisquel
|
icon-theme-name=trisquel
|
||||||
font-name=Sans 10
|
indicators = ~clock;~spacer;~host;~spacer;~a11y;~language;~session;~power
|
||||||
xft-antialias=true
|
default-user-image = /usr/share/pixmaps/trisquel.svg
|
||||||
xft-dpi=96
|
keyboard = onboard
|
||||||
xft-hintstyle=slight
|
reader = orca-lightdm-wrapper
|
||||||
xft-rgba=rgb
|
a11y-states = keyboard;reader;contrast;font
|
||||||
indicators=~a11y;~language;~session;~power
|
clock-format = %x %X
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
cat << EOF > orca-lightdm-wrapper
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Make sure that pulseaudio is running and not muted. This prevents sound initialization errors in the lightdm session
|
||||||
|
pulseaudio --start
|
||||||
|
pactl set-sink-mute @DEFAULT_SINK@ true
|
||||||
|
pactl set-sink-mute @DEFAULT_SINK@ false
|
||||||
|
|
||||||
|
which espeak paplay >/dev/null && espeak "Trisquel login" --stdout|paplay
|
||||||
|
exec orca \$@
|
||||||
|
EOF
|
||||||
|
chmod 755 orca-lightdm-wrapper
|
||||||
|
echo orca-lightdm-wrapper /usr/bin >> debian/lightdm-gtk-greeter.install
|
||||||
|
|
||||||
changelog "Trisquel themed"
|
changelog "Trisquel themed"
|
||||||
|
|
||||||
compile
|
compile
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue