- use sudo for software installation in logon script
- logon script desktop-entry
- new log functions in include
- renamed include file
- mozilla starter with profilename option
- added kdevelop profilename
This commit is contained in:
Daniel Pätzold
2026-02-21 20:50:02 +01:00
parent f48c656997
commit 21d1144813
10 changed files with 559 additions and 75 deletions
+9 -4
View File
@@ -2,8 +2,9 @@
# SPDX-FileCopyrightText: Daniel Pätzold
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# Usage
source ./setup_system.conf
source ./setup_system.inc
source ./setup_system.inc.sh
#Lokal Vars
LOGFILE="${TEMPDIR}/${SCRIPTNAME}.log"
@@ -13,6 +14,9 @@ if [ "${DAVTOKEN_USER}." == "." ]; then
get_nc_token
fi
# Use optional Profilename
profilename=${3:-"default"}
#Parametercheck:
if [ "${1}." == "." ]; then
echo "ERROR: Parameter 1 missing."
@@ -21,7 +25,7 @@ elif [ ${1} == 'firefox' ]; then
REMOTE_PATH=${PROFILE_FIREFOX_SRC}
PROFILE_PATH=${PROFILE_FIREFOX_DST}
if [ "${2}." == 'run.' ]; then
RUNCMD="/usr/bin/firefox --profile ${PROFILE_FIREFOX_DST}"
RUNCMD="/usr/bin/firefox --profile ${PROFILE_FIREFOX_DST}/${profilename}"
elif [ "${2}." == 'sync.' ]; then
RUNCMD=""
else
@@ -33,7 +37,7 @@ elif [ ${1} == 'thunderbird' ]; then
REMOTE_PATH=${PROFILE_TB_SRC}
PROFILE_PATH=${PROFILE_TB_DST}
if [ "${2}." == 'run.' ]; then
RUNCMD="/usr/bin/thunderbird -profile ${PROFILE_TB_DST}"
RUNCMD="/usr/bin/thunderbird -profile ${PROFILE_TB_DST}/${profilename}"
elif [ "${2}." == 'sync.' ]; then
RUNCMD=""
else
@@ -46,7 +50,7 @@ else
BREAK_ERROR=1
fi
if [[ ${BREAK_ERROR} == 1 ]]; then
echo "Call: ${SCRIPTNAME} [firefox | thunderbird] [run | sync]"
echo "Call: ${SCRIPTNAME} [firefox | thunderbird] [run | sync] [ profilename ]"
exit 1
fi
@@ -79,6 +83,7 @@ fi
#Execute
if [ "${RUNCMD}." != "." ]; then
echo "OK. Starting ${1}..."
echo ${RUNCMD}
${RUNCMD} && echo "${1} ended successfully. Please wait for the Profile to sync."
if [[ $? -ne 0 ]]; then
echo "****"