From 716b141a22a75a7db49b9a9bc8185a7a25d01333 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Tue, 2 Apr 2024 21:45:58 +0100 Subject: [PATCH] Start OneDrive client --- roles/home-gui/files/xsession-freebsd | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/home-gui/files/xsession-freebsd b/roles/home-gui/files/xsession-freebsd index 8bc265e..1b4b2e8 100644 --- a/roles/home-gui/files/xsession-freebsd +++ b/roles/home-gui/files/xsession-freebsd @@ -5,4 +5,10 @@ xsetroot -solid '#101010' backlight 10 mixer vol.mute=1 xkbcomp -w0 -I"${XDG_CONFIG_HOME:-$HOME/.config}/xkb" -R"${XDG_CONFIG_HOME:-$HOME/.config}/xkb" keymap/acp $DISPLAY + +if test -x "$(command -v onedrive)" +then + pgrep -U $(id -u) onedrive || nice onedrive --synchronize & +fi + exec /usr/local/bin/icewm-session