From b5462e47810831935ad778b5b4ff7e9677b6bfd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20unbrot=20P=C3=A4tzold?= Date: Tue, 5 May 2026 08:35:00 +0200 Subject: [PATCH] NC: remove autostart from installed Version --- .../0050_nextcloud_desktopclient/user_run.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/client_software/0050_nextcloud_desktopclient/user_run.sh b/client_software/0050_nextcloud_desktopclient/user_run.sh index 61f886e..5dd6408 100755 --- a/client_software/0050_nextcloud_desktopclient/user_run.sh +++ b/client_software/0050_nextcloud_desktopclient/user_run.sh @@ -21,9 +21,14 @@ fi #Remove Nextcloud from autostart anyway! Must be started by this script manually, because if it was started befor the ecrypted mount, #it will never sync and always throw an error that the local dir is missing -if [ -f "$SUDO_HOME/.config/autostart/com.nextcloud.desktopclient.nextcloud.desktop" ]; then - echo "Remove Autostart Nextcloud" - rm $SUDO_HOME/.config/autostart/com.nextcloud.desktopclient.nextcloud.desktop +if [ -f "$HOME/.config/autostart/com.nextcloud.desktopclient.nextcloud.desktop" ]; then + echo "Remove Autostart Nextcloud (old)" + rm $HOME/.config/autostart/com.nextcloud.desktopclient.nextcloud.desktop +fi +# Same for NCs nuild-in autostart +if [ -f "$HOME/.config/autostart/Nextcloud.desktop" ]; then + echo "Remove Autostart Nextcloud (from installed binary)" + rm $HOME/.config/autostart/Nextcloud.desktop fi NC_PID=$( pgrep -u $USER nextcloud )