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