From fef70d8d5652481d9df65f0640abde9aa12a0767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20unbrot=20P=C3=A4tzold?= Date: Thu, 7 May 2026 15:47:14 +0200 Subject: [PATCH] 0030_desktop_symbols does not need root for installing --- client_software/0030_desktop_symbols/install.sh | 15 --------------- client_software/0030_desktop_symbols/user_run.sh | 8 ++++++++ 2 files changed, 8 insertions(+), 15 deletions(-) delete mode 100755 client_software/0030_desktop_symbols/install.sh create mode 100755 client_software/0030_desktop_symbols/user_run.sh diff --git a/client_software/0030_desktop_symbols/install.sh b/client_software/0030_desktop_symbols/install.sh deleted file mode 100755 index 966cf48..0000000 --- a/client_software/0030_desktop_symbols/install.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env sh -# SPDX-FileCopyrightText: Daniel Pätzold -# SPDX-License-Identifier: AGPL-3.0-or-later -# -# Sofwareinstallation script for Nextcloud Talk. -# - -#Check for root -if [ "$EUID" -ne 0 ]; then - echo "Error: Script requires root. Please check if ${SCRIPTPATH}/${SCRIPTNAME} is in sudoers rules and if you are a member. And if executed via sudo." - exit 1 -fi - -cp -n *.desktop $SUDO_HOME/Schreibtisch -chown $SUDO_USER:$SUDO_USER $SUDO_HOME/Schreibtisch/*.desktop diff --git a/client_software/0030_desktop_symbols/user_run.sh b/client_software/0030_desktop_symbols/user_run.sh new file mode 100755 index 0000000..67bbdf6 --- /dev/null +++ b/client_software/0030_desktop_symbols/user_run.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env sh +# SPDX-FileCopyrightText: Daniel Pätzold +# SPDX-License-Identifier: AGPL-3.0-or-later +# +# Copies the included Desktop files to the Desktop +# + +cp -n *.desktop $HOME/Schreibtisch