From 0e4eadbef3f95d4edd8ce6d0f2c2498942e0ae38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=C3=A4tzold?= Date: Wed, 1 Apr 2026 00:41:24 +0200 Subject: [PATCH] Add user_run scripts for non root tasks --- client_software/0110_nextcloud_talk_app/install.sh | 2 -- client_software/0110_nextcloud_talk_app/user_run.sh | 3 +++ system_setup/logon_script.sh | 7 +++++++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100755 client_software/0110_nextcloud_talk_app/user_run.sh diff --git a/client_software/0110_nextcloud_talk_app/install.sh b/client_software/0110_nextcloud_talk_app/install.sh index 071b280..4b46e36 100755 --- a/client_software/0110_nextcloud_talk_app/install.sh +++ b/client_software/0110_nextcloud_talk_app/install.sh @@ -31,7 +31,5 @@ wget -q -P ${SCRIPTPATH} --timestamping https://github.com/nextcloud-releases/ta #TODO: Check if Talk is installed - if not, exit 1 -#Always start App -su -c "/usr/bin/nohup /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=electron-wrapper --file-forwarding com.nextcloud.talk --background >/dev/null 2>&1 &" $SUDO_USER exit 0 diff --git a/client_software/0110_nextcloud_talk_app/user_run.sh b/client_software/0110_nextcloud_talk_app/user_run.sh new file mode 100755 index 0000000..346b611 --- /dev/null +++ b/client_software/0110_nextcloud_talk_app/user_run.sh @@ -0,0 +1,3 @@ +#!/bin/bash +# Start Nextcloud Talk in Background +/usr/bin/nohup flatpak run --branch=stable --arch=x86_64 --command=electron-wrapper --file-forwarding com.nextcloud.talk --background 1>/dev/null 2>&1 & diff --git a/system_setup/logon_script.sh b/system_setup/logon_script.sh index 7a7e920..3c08bae 100755 --- a/system_setup/logon_script.sh +++ b/system_setup/logon_script.sh @@ -103,6 +103,13 @@ else fi echo "" +#Anyway run user scripts if existent +elog_add_command "${CLIENT_SOFTWARE_DST}/user_run.sh $2" +if [ $? -ne 0 ]; then + exit 1 +fi +elog_add "" + #SYNC Firefox + Thunderbird Profile ${SYSCONFIGPATH}/system_setup/mozilla_starter.sh firefox sync && ${SYSCONFIGPATH}/system_setup/mozilla_starter.sh thunderbird sync elog_add "Successfully synced Mozilla profiles (log in another file)."