move dbus activation in .zprofile

This commit is contained in:
Simon Rieger 2023-06-07 15:48:35 +02:00
parent c833435528
commit 7b62a1bb82

View file

@ -17,11 +17,6 @@ if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
# Added by Toolbox App # Added by Toolbox App
export PATH="$PATH:/home/${USER}/.local/share/JetBrains/Toolbox/scripts" export PATH="$PATH:/home/${USER}/.local/share/JetBrains/Toolbox/scripts"
# Falls autostartdesktop auf i3 gesetzt wird, wird i3 statt sway gestartet
if [ "${autostartdesktop}" = "i3" ]; then
echo "exec i3" > ~/.xinitrc
startx
else
# First make sure dbus is started # First make sure dbus is started
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
export DBUS_SESSION_BUS_ADDRESS="$(dbus-daemon --session --fork --print-address)" export DBUS_SESSION_BUS_ADDRESS="$(dbus-daemon --session --fork --print-address)"
@ -43,9 +38,13 @@ if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
eval $(keychain --noask --eval --quiet) eval $(keychain --noask --eval --quiet)
# Various exports # Various exports
export SHELL="$(command -v zsh)" export SHELL="$(command -v zsh)"
# Falls autostartdesktop auf i3 gesetzt wird, wird i3 statt sway gestartet
if [ "${autostartdesktop}" = "i3" ]; then
echo "exec i3" > ~/.xinitrc
startx
else
export QT_QPA_PLATFORMTHEME=qt5ct export QT_QPA_PLATFORMTHEME=qt5ct
export QT_QPA_PLATFORM=wayland export QT_QPA_PLATFORM=wayland
export QT_WAYLAND_DISABLE_WINDOWDECORATION="1" export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"