1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Fix bash-isms in .profile, causing errors on some devices

This commit is contained in:
Joe Groocock 2017-12-18 17:13:42 +00:00
parent 3351a95a0a
commit a4aa5c0830
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -31,17 +31,17 @@ if [ -f "$CONFIG_DIR/secrets" ]; then
fi fi
# Merge system clipboards # Merge system clipboards
if [ -n "$DISPLAY" ] && which autocutsel &>/dev/null; then if [ -n "$DISPLAY" ] && which autocutsel >/dev/null 2>&1; then
autocutsel -fork autocutsel -fork
autocutsel -selection PRIMARY -fork autocutsel -selection PRIMARY -fork
fi 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) eval $(dbus-launch --sh-syntax --exit-with-session)
dbus-update-activation-environment --systemd DISPLAY dbus-update-activation-environment --systemd DISPLAY
fi fi
# Start the gnome-keyring if it's installed # 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) export $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gnupg)
fi fi