Update shellMen
This commit is contained in:
parent
60ac06cd8d
commit
59fb8f8058
6
shellMen
6
shellMen
|
@ -80,6 +80,7 @@ mkdir /tmp/sysMENU
|
|||
touch /tmp/sysMENU/menu.list ;
|
||||
sed -i "d" /tmp/sysMENU/menu.list ;
|
||||
ls /usr/share/applications/ >> /tmp/sysMENU/menu.list ;
|
||||
|
||||
header=$(echo "#!/bin/bash
|
||||
INPUT=/tmp/menu.txt
|
||||
dialog --clear --backtitle "\"Shellmen"\" \\
|
||||
|
@ -103,8 +104,10 @@ menuHeaderInsert()
|
|||
{
|
||||
x=$(cat /tmp/sysMENU/menu.list | wc -l) >> /dev/null ; # Variable set to number of lines filled in list.txt
|
||||
i="1"
|
||||
|
||||
while [ $i -le $x ]; do
|
||||
line1=$(sed -n "${i}p" /tmp/sysMENU/menu.list); # Reads the number of lines in list.txt then sets as a variable counting up to variable x
|
||||
# Reads the number of lines in list.txt then sets as a variable counting up to variable x
|
||||
line1=$(sed -n "${i}p" /tmp/sysMENU/menu.list);
|
||||
filename="${line1%.*}"
|
||||
execMethod=$(grep -A 0 "Exec=" /usr/share/applications/"$line1")
|
||||
catagory=$(grep -A 0 "Categories=" /usr/share/applications/"$line1")
|
||||
|
@ -187,6 +190,7 @@ commandInsert()
|
|||
{
|
||||
x=$(cat /tmp/sysMENU/menu.list | wc -l) >> /dev/null ;
|
||||
i="1"
|
||||
|
||||
while [ $i -le $x ]; do
|
||||
line1=$(sed -n "${i}p" /tmp/sysMENU/menu.list);
|
||||
filename="${line1%.*}"
|
||||
|
|
Loading…
Reference in New Issue