etc and var customers
This commit is contained in:
24
etc/X11/Xsession.d/20dbus_xdg-runtime
Normal file
24
etc/X11/Xsession.d/20dbus_xdg-runtime
Normal file
@@ -0,0 +1,24 @@
|
||||
# vim:set ft=sh sw=2 sts=2 et:
|
||||
|
||||
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && [ -n "$XDG_RUNTIME_DIR" ] && \
|
||||
[ "$XDG_RUNTIME_DIR" = "/run/user/`id -u`" ] && \
|
||||
[ -S "$XDG_RUNTIME_DIR/bus" ]; then
|
||||
# We are under systemd-logind or something remarkably similar, and
|
||||
# a user-session socket has already been set up.
|
||||
#
|
||||
# Be nice to non-libdbus, non-sd-bus implementations by using
|
||||
# that as the session bus address in the environment. The check for
|
||||
# XDG_RUNTIME_DIR = "/run/user/`id -u`" is because we know that
|
||||
# form of the address, from systemd-logind, doesn't need escaping,
|
||||
# whereas arbitrary addresses might.
|
||||
DBUS_SESSION_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/bus"
|
||||
export DBUS_SESSION_BUS_ADDRESS
|
||||
fi
|
||||
|
||||
if [ -x "/usr/bin/dbus-update-activation-environment" ]; then
|
||||
# tell dbus-daemon --session (and systemd --user, if running)
|
||||
# to put a minimal subset of the Xsession's environment in activated
|
||||
# services' environments
|
||||
dbus-update-activation-environment --verbose --systemd \
|
||||
DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY
|
||||
fi
|
||||
6
etc/X11/Xsession.d/20vdpau-va-gl
Normal file
6
etc/X11/Xsession.d/20vdpau-va-gl
Normal file
@@ -0,0 +1,6 @@
|
||||
# To enable the use of libvdpau-va-gl as the default VDPAU driver,
|
||||
# uncommont the following lines. See
|
||||
# `/usr/share/doc/libvdpau-va-gl1/README.Debian` for more details.
|
||||
|
||||
# [ ! -f /usr/lib/$(arch)-$(uname -s | tr '[A-Z]' '[a-z]')-gnu/vdpau/libvdpau_va_gl.so.1 ] || \
|
||||
# export VDPAU_DRIVER=va_gl
|
||||
70
etc/X11/Xsession.d/20x11-common_process-args
Normal file
70
etc/X11/Xsession.d/20x11-common_process-args
Normal file
@@ -0,0 +1,70 @@
|
||||
# $Id: 20x11-common_process-args 305 2005-07-03 18:51:43Z dnusinow $
|
||||
|
||||
# This file is sourced by Xsession(5), not executed.
|
||||
|
||||
# read OPTIONFILE
|
||||
OPTIONS=$(cat "$OPTIONFILE") || true
|
||||
|
||||
has_option() {
|
||||
if [ "${OPTIONS#*
|
||||
$1}" != "$OPTIONS" ]; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Determine how many arguments were provided.
|
||||
case $# in
|
||||
0)
|
||||
# No arguments given; use default behavior.
|
||||
;;
|
||||
1)
|
||||
# One argument given; see what it was.
|
||||
case "$1" in
|
||||
failsafe)
|
||||
# Failsafe session was requested.
|
||||
if has_option allow-failsafe; then
|
||||
if [ -e /usr/bin/x-terminal-emulator ]; then
|
||||
if [ -x /usr/bin/x-terminal-emulator ]; then
|
||||
exec x-terminal-emulator -geometry +1+1
|
||||
else
|
||||
# fatal error
|
||||
errormsg "unable to launch failsafe X session ---" \
|
||||
"x-terminal-emulator not executable; aborting."
|
||||
fi
|
||||
else
|
||||
# fatal error
|
||||
errormsg "unable to launch failsafe X session ---" \
|
||||
"x-terminal-emulator not found; aborting."
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
default)
|
||||
# Default behavior was requested.
|
||||
;;
|
||||
*)
|
||||
# Specific program was requested.
|
||||
STARTUP_FULL_PATH=$(/usr/bin/which "$1" || true)
|
||||
if [ -n "$STARTUP_FULL_PATH" ] && [ -e "$STARTUP_FULL_PATH" ]; then
|
||||
if [ -x "$STARTUP_FULL_PATH" ]; then
|
||||
STARTUP="$1"
|
||||
else
|
||||
message "unable to launch \"$1\" X session ---" \
|
||||
"\"$1\" not executable; falling back to default session."
|
||||
fi
|
||||
else
|
||||
message "unable to launch \"$1\" X session ---" \
|
||||
"\"$1\" not found; falling back to default session."
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
# More than one argument given; we don't know what to do.
|
||||
message "unsupported number of arguments ($#); falling back to default" \
|
||||
"session."
|
||||
;;
|
||||
esac
|
||||
|
||||
# vim:set ai et sts=2 sw=2 tw=80:
|
||||
26
etc/X11/Xsession.d/30x11-common_xresources
Normal file
26
etc/X11/Xsession.d/30x11-common_xresources
Normal file
@@ -0,0 +1,26 @@
|
||||
# $Id: 30x11-common_xresources 305 2005-07-03 18:51:43Z dnusinow $
|
||||
|
||||
# This file is sourced by Xsession(5), not executed.
|
||||
|
||||
# If xrdb (from xbase-clients) is installed, merge system-wide X resources.
|
||||
# Then merge the user's X resources, if the options file is so configured.
|
||||
if [ -d "$SYSRESOURCES" ] && type xrdb >/dev/null 2>&1; then
|
||||
RESOURCEFILES=$(run-parts --list $SYSRESOURCES)
|
||||
if [ -n "$RESOURCEFILES" ]; then
|
||||
for RESOURCEFILE in $RESOURCEFILES; do
|
||||
xrdb -merge $RESOURCEFILE
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
if has_option allow-user-resources && [ -f "$USRRESOURCES" ]; then
|
||||
if type xrdb >/dev/null 2>&1; then
|
||||
xrdb -merge $USRRESOURCES
|
||||
else
|
||||
# Comment out this command if you desire a legacy-free X environment, and find
|
||||
# the warning spurious.
|
||||
message "warning: xrdb command not found; X resources not merged."
|
||||
fi
|
||||
fi
|
||||
|
||||
# vim:set ai et sts=2 sw=2 tw=80:
|
||||
10
etc/X11/Xsession.d/35x11-common_xhost-local
Normal file
10
etc/X11/Xsession.d/35x11-common_xhost-local
Normal file
@@ -0,0 +1,10 @@
|
||||
# This file is sourced by Xsession(5), not executed.
|
||||
|
||||
# If xhost (from x11-xserver-utils) is installed, use it to give access
|
||||
# to the X server to any process from the same user on the local host.
|
||||
# Unlike other uses of xhost, this is safe since the kernel can check
|
||||
# the actual owner of the calling process.
|
||||
|
||||
if type xhost >/dev/null 2>&1; then
|
||||
xhost +si:localuser:$(id -un) || :
|
||||
fi
|
||||
6
etc/X11/Xsession.d/40x11-common_xsessionrc
Normal file
6
etc/X11/Xsession.d/40x11-common_xsessionrc
Normal file
@@ -0,0 +1,6 @@
|
||||
# This file is sourced by Xsession(5), not executed.
|
||||
|
||||
#Source user defined xsessionrc (locales and other environment variables)
|
||||
if [ -r "$USERXSESSIONRC" ]; then
|
||||
. "$USERXSESSIONRC"
|
||||
fi
|
||||
47
etc/X11/Xsession.d/50x11-common_determine-startup
Normal file
47
etc/X11/Xsession.d/50x11-common_determine-startup
Normal file
@@ -0,0 +1,47 @@
|
||||
# $Id: 50x11-common_determine-startup 305 2005-07-03 18:51:43Z dnusinow $
|
||||
|
||||
# This file is sourced by Xsession(5), not executed.
|
||||
|
||||
# If no X session startup program was passed to the Xsession script as an
|
||||
# argument (e.g., by the display manager), or if that program was not
|
||||
# executable, fall back to looking for a user's custom X session script, if
|
||||
# allowed by the options file.
|
||||
if [ -z "$STARTUP" ]; then
|
||||
if has_option allow-user-xsession; then
|
||||
for STARTUPFILE in "$USERXSESSION" "$ALTUSERXSESSION"; do
|
||||
if [ -e "$STARTUPFILE" ]; then
|
||||
if [ -x "$STARTUPFILE" ]; then
|
||||
STARTUP="$STARTUPFILE"
|
||||
else
|
||||
shell=${SHELL:-sh}
|
||||
STARTUP="$shell $STARTUPFILE"
|
||||
fi
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
# If there is still nothing to use for a startup program, try the system
|
||||
# default session manager, window manager, and terminal emulator.
|
||||
if [ -z "$STARTUP" ]; then
|
||||
if [ -x /usr/bin/x-session-manager ]; then
|
||||
STARTUP=x-session-manager
|
||||
elif [ -x /usr/bin/x-window-manager ]; then
|
||||
STARTUP=x-window-manager
|
||||
elif [ -x /usr/bin/x-terminal-emulator ]; then
|
||||
STARTUP=x-terminal-emulator
|
||||
fi
|
||||
fi
|
||||
|
||||
# If we still have not found a startup program, give up.
|
||||
if [ -z "$STARTUP" ]; then
|
||||
ERRMSG="unable to start X session ---"
|
||||
if has_option allow-user-xsession; then
|
||||
ERRMSG="$ERRMSG no \"$USERXSESSION\" file, no \"$ALTUSERXSESSION\" file,"
|
||||
fi
|
||||
errormsg "$ERRMSG no session managers, no window managers, and no terminal" \
|
||||
"emulators found; aborting."
|
||||
fi
|
||||
|
||||
# vim:set ai et sts=2 sw=2 tw=80:
|
||||
22
etc/X11/Xsession.d/90gpg-agent
Normal file
22
etc/X11/Xsession.d/90gpg-agent
Normal file
@@ -0,0 +1,22 @@
|
||||
# On systems with systemd running, we expect the agent to be launched
|
||||
# via systemd's user mode (see
|
||||
# /usr/lib/systemd/user/gpg-agent.{socket,service} and
|
||||
# systemd.unit(5)). This allows systemd to clean up the agent
|
||||
# automatically at logout.
|
||||
|
||||
# If systemd is absent from your system, or you do not permit it to
|
||||
# run in user mode, then you may need to manually launch gpg-agent
|
||||
# from your session initialization with something like "gpgconf
|
||||
# --launch gpg-agent"
|
||||
|
||||
# Nonetheless, ssh and older versions of gpg require environment
|
||||
# variables to be set in order to find the agent, so we will set those
|
||||
# here.
|
||||
|
||||
agent_sock=$(gpgconf --list-dirs agent-socket)
|
||||
export GPG_AGENT_INFO=${agent_sock}:0:1
|
||||
if [ -n "$(gpgconf --list-options gpg-agent | \
|
||||
awk -F: '/^enable-ssh-support:/{ print $10 }')" ]; then
|
||||
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||
fi
|
||||
|
||||
12
etc/X11/Xsession.d/90qt-a11y
Normal file
12
etc/X11/Xsession.d/90qt-a11y
Normal file
@@ -0,0 +1,12 @@
|
||||
# -*- sh -*-
|
||||
# Xsession.d script to set the env variables to enable accessibility for Qt
|
||||
#
|
||||
# This file is sourced by Xsession(5), not executed.
|
||||
|
||||
QT_ACCESSIBILITY=1
|
||||
|
||||
export QT_ACCESSIBILITY
|
||||
|
||||
if [ -x "/usr/bin/dbus-update-activation-environment" ]; then
|
||||
dbus-update-activation-environment --verbose --systemd QT_ACCESSIBILITY
|
||||
fi
|
||||
24
etc/X11/Xsession.d/90x11-common_ssh-agent
Normal file
24
etc/X11/Xsession.d/90x11-common_ssh-agent
Normal file
@@ -0,0 +1,24 @@
|
||||
# $Id: 90x11-common_ssh-agent 305 2005-07-03 18:51:43Z dnusinow $
|
||||
|
||||
# This file is sourced by Xsession(5), not executed.
|
||||
|
||||
STARTSSH=
|
||||
SSHAGENT=/usr/bin/ssh-agent
|
||||
SSHAGENTARGS=
|
||||
|
||||
if has_option use-ssh-agent; then
|
||||
if [ -x "$SSHAGENT" ] && [ -z "$SSH_AUTH_SOCK" ] \
|
||||
&& [ -z "$SSH2_AUTH_SOCK" ]; then
|
||||
STARTSSH=yes
|
||||
if [ -f /usr/bin/ssh-add1 ] && cmp -s $SSHAGENT /usr/bin/ssh-agent2; then
|
||||
# use ssh-agent2's ssh-agent1 compatibility mode
|
||||
SSHAGENTARGS=-1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "$STARTSSH" ]; then
|
||||
STARTUP="$SSHAGENT $SSHAGENTARGS ${TMPDIR:+env TMPDIR=$TMPDIR} $STARTUP"
|
||||
fi
|
||||
|
||||
# vim:set ai et sts=2 sw=2 tw=80:
|
||||
7
etc/X11/Xsession.d/99x11-common_start
Normal file
7
etc/X11/Xsession.d/99x11-common_start
Normal file
@@ -0,0 +1,7 @@
|
||||
# $Id: 99x11-common_start 305 2005-07-03 18:51:43Z dnusinow $
|
||||
|
||||
# This file is sourced by Xsession(5), not executed.
|
||||
|
||||
exec $STARTUP
|
||||
|
||||
# vim:set ai et sts=2 sw=2 tw=80:
|
||||
Reference in New Issue
Block a user