Install infos

This commit is contained in:
nvrm 2024-02-26 05:52:10 +01:00
parent c922deda8c
commit 9f102d709a
7 changed files with 55 additions and 12 deletions

View File

@ -5,7 +5,7 @@ Name=shelix editor
GenericName=Shelix IDE
Terminal=true
Comment=Open with shelix
Exec=zsh -c 'cd /media/nvrm/dev/DEVS/SHELIX && ./shelix.sh %U; $SHELL' shelix %U
Icon=/media/nvrm/dev/DEVS/SHELIX/shelix.png
Exec=bash -c 'cd SHELIXPATH && ./shelix.sh %U; $SHELL' shelix %U
Icon=shelix-ide.png
Categories=Development
MimeType=application/x-sh;application/x-shellscript;

View File

@ -5,8 +5,8 @@ Name=Shelix editor
GenericName=Shelix IDE
Comment=Open with Shelix
Terminal=true
Exec=zsh -c 'cd /media/nvrm/dev/DEVS/SHELIX && ./shelix.sh %U; $SHELL'
Icon=/media/nvrm/dev/DEVS/SHELIX/shelix.png
Exec=bash -c 'cd SHELIXPATH && ./shelix.sh %U; $SHELL'
Icon=shelix-ide.png
Categories=Development
NoDisplay=true
MimeType=application/x-sh;application/x-shellscript;

View File

@ -1,4 +0,0 @@
Fri Feb 16 05:39:23 PM CET 2024
=== New Session === install /media/nvrm/dev/DEVS/SHELIX/install
Fri Feb 16 05:39:23 PM CET 2024
=== New Session === install /media/nvrm/dev/DEVS/SHELIX/install

BIN
shelix-ide.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -0,0 +1,16 @@
@@@ Theme -s /media/nvrm/dev/DEVS/SHELIX/themes/embers.dark.json @@@
                                 
@@@ Theme -s /media/nvrm/dev/DEVS/SHELIX/themes/embers.dark.json @@@
                                 
Mon Feb 26 03:04:22 AM CET 2024
=== New Session === COINMC /media/nvrm/dev/DEVS/SHELIX
Mon Feb 26 03:04:22 AM CET 2024
=== New Session === COINMC /media/nvrm/dev/DEVS/COINMC
@@@ Theme -s /media/nvrm/dev/DEVS/SHELIX/themes/embers.dark.json @@@
                                 
@@@ Theme -s /media/nvrm/dev/DEVS/SHELIX/themes/embers.dark.json @@@
                                 
Mon Feb 26 05:16:43 AM CET 2024
=== New Session === themes /media/nvrm/dev/DEVS/SHELIX
Mon Feb 26 05:16:43 AM CET 2024
=== New Session === themes /media/nvrm/dev/DEVS/SHELIX/themes

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

View File

@ -24,6 +24,8 @@ export PATH="$SHELIXPATH/libs/:$PATH"
source $SHELIXPATH/env/utils.sh
USESESSION="$1"
logs() {
local message=$1
echo "$(date)" >> shelix.logs
@ -60,6 +62,34 @@ pwn() {
tmux attach -t "$session_name"
}
if [[ " $@ " =~ " --install " ]];then
echo "OH WOW"
# exit
ln -sf $SHELIXPATH/shelix.sh ~/.local/bin/shelix
# Place the shelix.desktop file somewhere it can be found by the OS
cp -f $SHELIXPATH/install/shelix.desktop ~/.local/share/applications/
# Add the shelix.desktop file
cp -f $SHELIXPATH/install/shelix-open.desktop ~/.local/share/applications/
# Icon
xdg-icon-resource install --size 128 $SHELIXPATH/shelix-ide.png
# Update the paths to the shelix and its icon in the shelix.desktop file(s)
sed -i "s|SHELIXPATH|$SHELIXPATH|g" ~/.local/share/applications/shelix*.desktop
# sed -i "s|Icon=SHELIXPATH|Icon=$SHELIXPATH/shelix.png|g" ~/.local/share/applications/shelix*.desktop
# sed -i "s|Exec=SHELIXPATH|Exec=$SHELIXPATH/shelix|g" ~/.local/share/applications/shelix*.desktop
exit
fi
if [[ " $@ " =~ " --uninstall " ]];then
echo "OH WOW"
rm ~/.local/bin/shelix
rm ~/.local/share/applications/shelix.desktop
rm ~/.local/share/applications/shelix-open.desktop
xdg-icon-resource uninstall --size 128 shelix-ide.png
exit
fi
# @TODO improve command line param handling
if [[ " $@ " =~ " -l0 " ]]; then
@ -112,10 +142,11 @@ if [ "$TERM_PROGRAM" = tmux ]; then
else
echo "=== Welcome (back) to the Shelix IDE :] ==="
if [ -n "$1" ]; then
if [ -e "$1" ] && [ -d "$1" ]; then
session_path="$1"
session_name="$(basename $1)"
if [ -n "$USESESSION" ]; then
echo "::: $USESESSION"
if [ -e "$USESESSION" ] && [ -d "$USESESSION" ]; then
session_path="$USESESSION"
session_name="$(basename $USESESSION)"
echo "Session name = $session_name "
echo "Session path = $session_path "
else