Fixed su launch issues and 2&>1 issue
This commit is contained in:
parent
58eb795cfc
commit
4cd30a2618
5
shellMen
5
shellMen
|
@ -115,10 +115,11 @@ i="1"
|
|||
while [ $i -le $x ]; do
|
||||
line1=$(sed -n "${i}p" "${pth}"/menu.list);
|
||||
filename="${line1%.*}"
|
||||
execMethod=$(grep -A 0 "Exec=" /usr/share/applications/"$line1")
|
||||
execMethod=$(grep -A 0 -m2 "Exec=" /usr/share/applications/"$line1" | tail -n1)
|
||||
execMethod=$(echo ${execMethod} | sed s/Exec=//g | sed s/%f//g)
|
||||
catagory=$(grep -A 0 "Categories=" /usr/share/applications/"$line1")
|
||||
preComment=$(grep -A 0 "Comment=" /usr/share/applications/"$line1")
|
||||
execCMD=$(echo "${filename}) ${filename} & shellMen ;;")
|
||||
execCMD=$(echo "${filename}) ${execMethod} & shellMen ;;")
|
||||
if [[ "$catagory" == *"$accss"* ]] || [[ "$catagory" == *"$util"* ]]; then
|
||||
echo "$execCMD" >> "${pth}"/${accss}.sh
|
||||
elif [[ "$catagory" == *"$dev"* ]]; then
|
||||
|
|
Loading…
Reference in New Issue