mirror of
https://github.com/Snigdha-OS/snigdhaos-system-config.git
synced 2025-09-06 04:35:14 +02:00
⏳ @eshanized updated the repository 🎉 !!!
This commit is contained in:
@@ -70,3 +70,27 @@ if [ -z "$terminal" ] || ! command -v "$terminal" &>/dev/null; then
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -z "$terminal" ]; then
|
||||
notify-send -t 15000 --app-name=Garuda\ Linux "No terminal installed" "No supported terminal emulator is installed. Please install a terminal emulator like Alacritty."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Special kgx, thanks gnome
|
||||
if [ "$terminal" == "kgx" ]; then
|
||||
sed -i '2i sleep 0.1' $initfile
|
||||
echo 'kill -SIGINT $PPID' >>$initfile
|
||||
fi
|
||||
|
||||
eval "${terminals[${terminal}]}" || {
|
||||
exitcode=$?
|
||||
}
|
||||
|
||||
rm "$initfile"
|
||||
if [ "$codefile" != "$initfile" ]; then
|
||||
rm "$codefile"
|
||||
fi
|
||||
|
||||
if [ ! -z "$exitcode" ] && [ "$exitcode" != 130 ]; then
|
||||
exit 2
|
||||
fi
|
||||
|
Reference in New Issue
Block a user