mirror of
https://github.com/webdev23/shelix.git
synced 2024-08-16 15:30:25 +03:00
Install infos
This commit is contained in:
parent
c922deda8c
commit
9f102d709a
@ -5,7 +5,7 @@ Name=shelix editor
|
|||||||
GenericName=Shelix IDE
|
GenericName=Shelix IDE
|
||||||
Terminal=true
|
Terminal=true
|
||||||
Comment=Open with shelix
|
Comment=Open with shelix
|
||||||
Exec=zsh -c 'cd /media/nvrm/dev/DEVS/SHELIX && ./shelix.sh %U; $SHELL' shelix %U
|
Exec=bash -c 'cd SHELIXPATH && ./shelix.sh %U; $SHELL' shelix %U
|
||||||
Icon=/media/nvrm/dev/DEVS/SHELIX/shelix.png
|
Icon=shelix-ide.png
|
||||||
Categories=Development
|
Categories=Development
|
||||||
MimeType=application/x-sh;application/x-shellscript;
|
MimeType=application/x-sh;application/x-shellscript;
|
||||||
|
@ -5,8 +5,8 @@ Name=Shelix editor
|
|||||||
GenericName=Shelix IDE
|
GenericName=Shelix IDE
|
||||||
Comment=Open with Shelix
|
Comment=Open with Shelix
|
||||||
Terminal=true
|
Terminal=true
|
||||||
Exec=zsh -c 'cd /media/nvrm/dev/DEVS/SHELIX && ./shelix.sh %U; $SHELL'
|
Exec=bash -c 'cd SHELIXPATH && ./shelix.sh %U; $SHELL'
|
||||||
Icon=/media/nvrm/dev/DEVS/SHELIX/shelix.png
|
Icon=shelix-ide.png
|
||||||
Categories=Development
|
Categories=Development
|
||||||
NoDisplay=true
|
NoDisplay=true
|
||||||
MimeType=application/x-sh;application/x-shellscript;
|
MimeType=application/x-sh;application/x-shellscript;
|
||||||
|
@ -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
BIN
shelix-ide.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
16
shelix.logs
16
shelix.logs
@ -0,0 +1,16 @@
|
|||||||
|
@@@ Theme -s /media/nvrm/dev/DEVS/SHELIX/themes/embers.dark.json @@@
|
||||||
|
[48;2;22;19;15m [0m [48;2;130;109;87m [0m [48;2;87;130;109m [0m [48;2;109;130;87m [0m [48;2;109;87;130m [0m [48;2;130;87;109m [0m [48;2;87;109;130m [0m [48;2;163;154;144m [0m [48;2;90;80;71m [0m [48;2;130;109;87m [0m [48;2;87;130;109m [0m [48;2;109;130;87m [0m [48;2;109;87;130m [0m [48;2;22;19;15m [0m [48;2;163;154;144m [0m [48;2;11;9;7m [0m [48;2;81;77;72m [0m
|
||||||
|
@@@ Theme -s /media/nvrm/dev/DEVS/SHELIX/themes/embers.dark.json @@@
|
||||||
|
[48;2;22;19;15m [0m [48;2;130;109;87m [0m [48;2;87;130;109m [0m [48;2;109;130;87m [0m [48;2;109;87;130m [0m [48;2;130;87;109m [0m [48;2;87;109;130m [0m [48;2;163;154;144m [0m [48;2;90;80;71m [0m [48;2;130;109;87m [0m [48;2;87;130;109m [0m [48;2;109;130;87m [0m [48;2;109;87;130m [0m [48;2;22;19;15m [0m [48;2;163;154;144m [0m [48;2;11;9;7m [0m [48;2;81;77;72m [0m
|
||||||
|
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 @@@
|
||||||
|
[48;2;22;19;15m [0m [48;2;130;109;87m [0m [48;2;87;130;109m [0m [48;2;109;130;87m [0m [48;2;109;87;130m [0m [48;2;130;87;109m [0m [48;2;87;109;130m [0m [48;2;163;154;144m [0m [48;2;90;80;71m [0m [48;2;130;109;87m [0m [48;2;87;130;109m [0m [48;2;109;130;87m [0m [48;2;109;87;130m [0m [48;2;22;19;15m [0m [48;2;163;154;144m [0m [48;2;11;9;7m [0m [48;2;81;77;72m [0m
|
||||||
|
@@@ Theme -s /media/nvrm/dev/DEVS/SHELIX/themes/embers.dark.json @@@
|
||||||
|
[48;2;22;19;15m [0m [48;2;130;109;87m [0m [48;2;87;130;109m [0m [48;2;109;130;87m [0m [48;2;109;87;130m [0m [48;2;130;87;109m [0m [48;2;87;109;130m [0m [48;2;163;154;144m [0m [48;2;90;80;71m [0m [48;2;130;109;87m [0m [48;2;87;130;109m [0m [48;2;109;130;87m [0m [48;2;109;87;130m [0m [48;2;22;19;15m [0m [48;2;163;154;144m [0m [48;2;11;9;7m [0m [48;2;81;77;72m [0m
|
||||||
|
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
|
BIN
shelix.png
BIN
shelix.png
Binary file not shown.
Before Width: | Height: | Size: 41 KiB |
39
shelix.sh
39
shelix.sh
@ -24,6 +24,8 @@ export PATH="$SHELIXPATH/libs/:$PATH"
|
|||||||
|
|
||||||
source $SHELIXPATH/env/utils.sh
|
source $SHELIXPATH/env/utils.sh
|
||||||
|
|
||||||
|
USESESSION="$1"
|
||||||
|
|
||||||
logs() {
|
logs() {
|
||||||
local message=$1
|
local message=$1
|
||||||
echo "$(date)" >> shelix.logs
|
echo "$(date)" >> shelix.logs
|
||||||
@ -60,6 +62,34 @@ pwn() {
|
|||||||
tmux attach -t "$session_name"
|
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
|
# @TODO improve command line param handling
|
||||||
if [[ " $@ " =~ " -l0 " ]]; then
|
if [[ " $@ " =~ " -l0 " ]]; then
|
||||||
@ -112,10 +142,11 @@ if [ "$TERM_PROGRAM" = tmux ]; then
|
|||||||
else
|
else
|
||||||
echo "=== Welcome (back) to the Shelix IDE :] ==="
|
echo "=== Welcome (back) to the Shelix IDE :] ==="
|
||||||
|
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$USESESSION" ]; then
|
||||||
if [ -e "$1" ] && [ -d "$1" ]; then
|
echo "::: $USESESSION"
|
||||||
session_path="$1"
|
if [ -e "$USESESSION" ] && [ -d "$USESESSION" ]; then
|
||||||
session_name="$(basename $1)"
|
session_path="$USESESSION"
|
||||||
|
session_name="$(basename $USESESSION)"
|
||||||
echo "Session name = $session_name "
|
echo "Session name = $session_name "
|
||||||
echo "Session path = $session_path "
|
echo "Session path = $session_path "
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user