From 334704789858650fb429116f9fc041ffaa685c56 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sat, 4 Apr 2020 11:53:30 +0200 Subject: [PATCH] more general approach to start x --- .profile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.profile b/.profile index 6bb37f4..4662adf 100644 --- a/.profile +++ b/.profile @@ -18,6 +18,7 @@ export TABLE="sc-im" export TERMINAL="st" export QT_QPA_PLATFORMTHEME="qt5ct" export VIDEO="mpv" +export JAVA_HOME="/usr/lib/jvm/java-11-openjdk" export XDG_CACHE_HOME="$HOME/.cache" export XDG_CONFIG_HOME="$HOME/.config" @@ -57,5 +58,5 @@ export LESS_TERMCAP_ue="$(printf '%b' '')"; a="${a%_}" echo "$0" | grep "bash$" >/dev/null && [ -f ~/.bashrc ] && source "$HOME/.bashrc" echo "$0" | grep "zsh$" >/dev/null && [ -f $ZDOTDIR/.zshrc ] && source "$ZDOTDIR/.zshrc" -# Start graphical server if dwm not already running. -[ "$(tty)" = "/dev/tty1" ] && ! pgrep -x dwm >/dev/null && exec startx +# Start graphical server if not already running. +[ "$(tty)" = "/dev/tty1" ] && ! pgrep -x Xorg >/dev/null && exec startx