[Bug 221452] sysutils/consolekit2: session's active state lost when switching between virtual terminals
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Apr 27 17:57:48 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221452
--- Comment #13 from Christina Mueller <chris at mumac.de> ---
That's actually a little customized. I use lightdm but I had to add a few
scripts to /usr/local/etc/X11/xinit/xinitrc.d to get things working the way I
like.
Changes to lightdm.conf:
* xserver-allow-tcp=true
* greeter-hide-users=true
* [XDMCPServer] enabled=true
There's one file from consolekit in xinitrc.d, 90-consolekit, which is
unchanged. The files I added are:
============================================================================
50-login_conf.sh:
# Lightdm, for one, doesn't process /etc/login.conf and there's no pam module
# to step in, either, thus we have to patch this somehow. For now, we'll
# simply check if BLOCKSIZE is set and, if not, set BLOCKSIZE and PATH
# to sane default values.
if [ -z "$BLOCKSIZE" ] ; then
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/local/bin:~/bin
BLOCKSIZE=K
export BLOCKSIZE
fi
============================================================================
50-mouse_config.sh:
#------------------------------------------------------------------------------
# Set property for given input device and property name (e.g.
# "Device Accel Constant Deceleration").
#
# NOTE: The expectation is that this won't be called more than a few times
# during X startup (<10), thus there's no point optimizing or caching
# anything. Famous last words...
#
xinp_set_prop()
{
local device="$1"
local property="$2"
local value="$3"
local id
local pi
# find device ID
id=`xinput --list --id-only $device`
# find property index for $prop
pi=`xinput --list-props $id | sed -e "s/$property (\([^)]*\).*/\1/" -e t -e
d`
if [ -n "$pi" ] ; then
xinput --set-prop $id $pi $value
fi
}
xinp_set_prop sysmouse "Device Accel Constant Deceleration" 1.7
xinp_set_prop sysmouse "Mouse Middle Button Emulation" 0
============================================================================
50-caps_compose.sh:
#!/bin/sh
# configure caps lock as compose key; never needed caps lock, anyway...
setxkbmap -option compose:caps
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-gnome
mailing list