repo.or.cz
/
hband-tools.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fill-form accepts dot as a placeholder type-nothing parameter
[hband-tools.git]
/
icewm
/
icewm-menu-startup-progs
blob
522fe2b0c6684435b08afbf5557e2f11b7742a3c
1
#!/usr/bin/env perl
2
3
for
$file
(
glob
"/etc/xdg/autostart/*"
)
4
{
5
my
%prog
= ();
6
open my
$fh
,
'<'
,
$file
or warn
$!;
7
while
(<
$fh
>)
8
{
9
chomp
;
10
if
(
/^(Name|Icon|Exec)=(.+)/
)
11
{
12
$prog
{
$1
} =
$2
;
13
}
14
}
15
close
$fh
;
16
17
print
"prog
\"
$prog
{Name}
\" \"
$prog
{Icon}
\"
$prog
{Exec}
\n
"
;
18
}