Closed blueyed closed 8 years ago
This may not be the key, and may not apply to Arch but ToriOS uses
/etc/X11/Xsession jwm
The startup script also sets a bunch of environment variables, but the key to Xsession is
/etc/X11/Xsession.options
# $Id: Xsession.options 189 2005-06-11 00:04:27Z branden $
#
# configuration options for /etc/X11/Xsession
# See Xsession.options(5) for an explanation of the available options.
allow-failsafe
allow-user-resources
allow-user-xsession
use-ssh-agent
use-session-dbus
Hope this helps some
How does your .xinitrc look like, since you're using plain startx?
#!/bin/sh
exec 2> ~/.xsession-errors
source ~/.xprofile
exec ~/.dotfiles/usr/bin/session-run-awesome.sh
~/.dotfiles/usr/bin/session-run-awesome.sh
is a more sophisticated exec awesome
.
~/.xprofile looks similar to that:
export DESKTOP_SESSION=gnome
sh_setup_x_theme="$(~/.dotfiles/usr/bin/sh-setup-x-theme "")"
eval "$sh_setup_x_theme"
unset MY_X_THEME_VARIANT
unset _ZSH_LAST_CMD_TITLE
if [ -x /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 ]; then
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
else
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
fi
setxkbmap -layout de -variant nodeadkeys -option -option 'caps:ctrl_modifier' -option 'lv3:ralt_switch_multikey'
xcape -t 200 -e 'Caps_Lock=Escape;Control_L=Control_L|O;Shift_L=parenleft;Shift_R=parenright;Control_R=Menu'
xset b 100
xset s 300 5
xset r rate 200 25
autorandr -c --force
synclient MaxTapTime=0
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 200
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 6 7 4 5
xinput set-prop "TPPS/2 IBM TrackPoint" "Device Accel Constant Deceleration" 0.95
rofi -width 80 &
compton &
_ZSH_ENVOY_SH_FILE=/run/user/$(id -u)/envoy.sh
envoy -t gpg-agent --defer ~/.ssh/id_rsa ~/.ssh/id_*_rsa -p > $_ZSH_ENVOY_SH_FILE
source $_ZSH_ENVOY_SH_FILE
~/.dotfiles/usr/bin/weechat-notify-from-remote.sh &
xss-lock --ignore-blank -n dim-screen.sh -- slock &
/usr/bin/redshift-gtk -l 52.5099259:13.421095700000023 -v &
nm-applet &
copyq &
Now I have put dunst >> /tmp/dunst.log &
in there, but it used to get started automatically IIRC.
I have these dbus processes:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
dbus 457 0.0 0.0 37408 4016 ? Ss Nov20 0:03 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
user 1261 0.0 0.0 37044 3812 ? Ss Nov20 0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation
user 1275 0.0 0.0 36676 3552 ? S Nov20 0:00 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
Does your script to start awesome handle the call to dbus-launch? The xinitrc itself doesn't source /etc/X11/xinitrc/xinitrc.d/ where 50-systemd-user.sh resides. It handles that the wm is started with a dbus-session
The old way to achieve this was a line like this in the .xinitrc
exec dbus-launch openbox-session
That's currently the only thing I can think of. Without this I don't have a session "combined" with the wm and I notice similar effects.
Edit: https://wiki.archlinux.org/index.php/Xinitrc#Configuration Edit2: http://dbus.freedesktop.org/doc/dbus-launch.1.html
Thanks!
I've found the following, where dbus-update-activation-environment DISPLAY XAUTHORITY
fixes it.
% cat /etc/X11/xinit/xinitrc.d/50-systemd-user.sh
#!/bin/sh
systemctl --user import-environment DISPLAY XAUTHORITY
if which dbus-update-activation-environment >/dev/null 2>&1; then
dbus-update-activation-environment DISPLAY XAUTHORITY
fi
I will add the following to ~/.xinitrc (from /etc/X11/xinit/xinitrc):
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
dunst is not started anymore automatically for me.
I am using the dunst 1.1.0-1 package on Arch Linux.
If I remember correctly it has worked before, and might be linked to using
startx
currently.The output from
dbus-monitor
afternotify-send foo
without dunst running.If I start it manually, it displays the notification.