From c3741ebf982f3c398e961e3fdd9647f6dd81c8b8 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Sat, 18 Sep 2021 15:18:02 +0200 Subject: [PATCH] More POSIX compliant syntax in .xsession and .xsessionrc --- x/.xsession | 4 ++-- x/.xsessionrc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/x/.xsession b/x/.xsession index 4864e2b..24a898f 100755 --- a/x/.xsession +++ b/x/.xsession @@ -4,8 +4,8 @@ # interfaces launchers (all DM and xinitrc/startx) should go in ~/.xsessionrc . # This file is only sourced on Debian and derivates, so here a rudimentary # check to source it in case we're not on Debian or derivative distro. -if [ ! -f /etc/debian_version]; then - [ -f $HOME/.xsessionrc ] && . $HOME/.xsessionrc +if [ ! -f /etc/debian_version ]; then + [ -f "$HOME/.xsessionrc" ] && . "$HOME/.xsessionrc" fi # Set i3 as default if no argument is passed diff --git a/x/.xsessionrc b/x/.xsessionrc index 3327ae4..60f54ec 100755 --- a/x/.xsessionrc +++ b/x/.xsessionrc @@ -15,7 +15,7 @@ C_PATH="$HOME/.local/bin" unset C_PATH # Mount remote volumes -if $(fsmartconnect --version > /dev/null); then +if fsmartconnect --version > /dev/null ; then fsmartconnect & fi