system-settings Add workaround for 'lightdm cursor' bug.
See https://bugzilla.altlinux.org/show_bug.cgi?id=29167 for more information.
This commit is contained in:
parent
77773bb8a2
commit
ee289b17f4
@ -228,9 +228,10 @@ Menu for Simply Linux
|
||||
Summary: Some system settings for Simply Linux
|
||||
License: GPLv2+
|
||||
Group: System/Base
|
||||
Requires: lightdm-gtk-greeter
|
||||
|
||||
%description system-settings
|
||||
Some system settings for Simply Linux
|
||||
Some system settings for Simply Linux.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
@ -330,6 +331,7 @@ cp menu/altlinux-wine.directory %buildroot/usr/share/desktop-directories/
|
||||
# system-settings
|
||||
mkdir -p %buildroot/%_sysconfdir/polkit-1/rules.d/
|
||||
cp -a system-settings/polkit-rules/*.rules %buildroot/%_sysconfdir/polkit-1/rules.d/
|
||||
install -Dm644 system-settings/ldm_pam_environment %buildroot%_localstatedir/ldm/.pam_environment
|
||||
|
||||
#bootloader
|
||||
%pre bootloader
|
||||
@ -357,6 +359,13 @@ shell_config_set /etc/sysconfig/grub2 GRUB_COLOR_HIGHLIGHT %grub_high
|
||||
%post indexhtml
|
||||
%_sbindir/indexhtml-update
|
||||
|
||||
%post system-settings
|
||||
chown _ldm:_ldm %_localstatedir/ldm/.pam_environment
|
||||
sed -i '/pam_env\.so/ {
|
||||
/user_readenv/ b
|
||||
s/pam_env\.so/pam_env.so user_readenv=1/ }
|
||||
' %_sysconfdir/pam.d/lightdm-greeter
|
||||
|
||||
%files bootloader
|
||||
%_datadir/gfxboot/%theme
|
||||
/boot/splash/%theme
|
||||
@ -425,7 +434,8 @@ subst "s/Theme=.*/Theme=%theme/" /etc/plymouth/plymouthd.conf
|
||||
/usr/share/desktop-directories/altlinux-wine.directory
|
||||
|
||||
%files system-settings
|
||||
%_sysconfdir/polkit-1/rules.d/*.rules
|
||||
%config %_sysconfdir/polkit-1/rules.d/*.rules
|
||||
%config %_localstatedir/ldm/.pam_environment
|
||||
|
||||
%changelog
|
||||
* Thu Jul 04 2013 Mikhail Efremov <sem@altlinux.org> 7.0.0-alt6
|
||||
|
4
system-settings/ldm_pam_environment
Normal file
4
system-settings/ldm_pam_environment
Normal file
@ -0,0 +1,4 @@
|
||||
# Workaround for ALT bug #29167.
|
||||
# Based on suggestion by Daniel Gnoutcheff (gnoutchd)
|
||||
# https://bugs.launchpad.net/lightdm/+bug/1024482/comments/18.
|
||||
GDK_CORE_DEVICE_EVENTS=true
|
Loading…
x
Reference in New Issue
Block a user