From a4aa5c0830f218bc9ec79e5c224db0ba64787f2b Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Mon, 18 Dec 2017 17:13:42 +0000 Subject: [PATCH] Fix bash-isms in .profile, causing errors on some devices --- .profile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.profile b/.profile index ce8e579..b4ed5f4 100644 --- a/.profile +++ b/.profile @@ -31,17 +31,17 @@ if [ -f "$CONFIG_DIR/secrets" ]; then fi # Merge system clipboards -if [ -n "$DISPLAY" ] && which autocutsel &>/dev/null; then +if [ -n "$DISPLAY" ] && which autocutsel >/dev/null 2>&1; then autocutsel -fork autocutsel -selection PRIMARY -fork fi -if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then +if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && which dbus-launch >/dev/null 2>&1; then eval $(dbus-launch --sh-syntax --exit-with-session) dbus-update-activation-environment --systemd DISPLAY fi # Start the gnome-keyring if it's installed -if which gnome-keyring-daemon &>/dev/null; then +if which gnome-keyring-daemon >/dev/null 2>&1; then export $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gnupg) fi