Logon script setup: Moved to client software
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env xdg-open
|
||||||
|
[Desktop Entry]
|
||||||
|
Exec=/opt/sys_config/system_setup/logon_script.sh
|
||||||
|
Icon=application-x-shellscript
|
||||||
|
Name=User Logon Script
|
||||||
|
Type=Application
|
||||||
|
X-KDE-AutostartScript=true
|
||||||
+12
@@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
# SPDX-FileCopyrightText: Daniel Pätzold
|
||||||
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
#
|
||||||
|
#Copy current Version of Autostart-Entry
|
||||||
|
rm -f "${HOME}/.config/autostart/logon_script.sh.desktop"
|
||||||
|
cp "${SCRIPTPATH}/logon_script.sh.desktop" "${HOME}/.config/autostart"
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
elog_add "Failed to setup autostart- entry. Check your installation of these scripts."
|
||||||
|
echo "Press any key to continue" && read -n 1 -s -r && exit 1
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
@@ -25,14 +25,6 @@ if [ $? -ne 0 ]; then
|
|||||||
echo "Press any key to continue" && read -n 1 -s -r && exit 1
|
echo "Press any key to continue" && read -n 1 -s -r && exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Copy current Version of Autostart-Entry
|
|
||||||
rm -f "${HOME}/.config/autostart/logon_script.sh.desktop"
|
|
||||||
cp "${SCRIPTPATH}/logon_script.sh.desktop" "${HOME}/.config/autostart"
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
elog_add "Failed to setup autostart- entry. Check your installation of these scripts."
|
|
||||||
echo "Press any key to continue" && read -n 1 -s -r && exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Mount the private Directory
|
# Mount the private Directory
|
||||||
elog_add_command "${SYSCONFIGPATH}/system_setup/mount_ecrypt_home.sh"
|
elog_add_command "${SYSCONFIGPATH}/system_setup/mount_ecrypt_home.sh"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
#!/usr/bin/env xdg-open
|
|
||||||
[Desktop Entry]
|
|
||||||
Exec=/usr/bin/konsole --fullscreen --hide-tabbar --hide-menubar -e /opt/sys_config/system_setup/logon_script.sh
|
|
||||||
Icon=application-x-shellscript
|
|
||||||
Name=logon_script.sh
|
|
||||||
Type=Application
|
|
||||||
X-KDE-AutostartScript=true
|
|
||||||
Reference in New Issue
Block a user