-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathiconlist.sh
executable file
·24 lines (24 loc) · 914 Bytes
/
iconlist.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
#================================================
# O.S. : Gnu Linux =
# Author : Cristian Pozzessere = ilnanny =
# D.A.Page : http://ilnanny.deviantart.com =
# Github : https://github.com/ilnanny =
#================================================
cd "/usr/share/applications/"
pwd
echo Target : $1
let x=0
for i in `cd /usr/share/applications/;ls -a *.desktop`
do
let x=$x+1;
filename=$(echo $i | sed 's/.desktop//')
echo $x "======================================================================"
echo $i
comment=`cat /usr/share/applications/$i | grep 'Comment=' | sed 's/Comment=//'`
echo $comment
name=`cat /usr/share/applications/$i | grep 'Name=' | sed 's/Name=//'`
echo $name
icon=`cat /usr/share/applications/$i | grep 'Icon=' | sed 's/Icon=//'`
echo $icon
done