8 xdg-autostart - Start XDG autostart programms
25 for line
in `grep -vE '^\s*(#|$)' "$1"`
28 prop
[${key,,}]=${line#*=}
36 test "$v" = true
-o "$v" = on
-o "$v" = 1 -o "$v" = yes
47 if [ "$x" = "$needle" ]
57 if [ -n "${prop[path]}" ]
73 echo FILE
=$desktop_file EXEC
="$@"
89 --dry-run, -n Do not run anything, only show"
96 echo "Unknown option: $1" >&2
105 for desktop_file
in $HOME/.config
/autostart
/*.desktop
/etc
/xdg
/autostart
/*.desktop
107 filename
=${desktop_file##*/}
108 loadprops
"$desktop_file"
110 if [ "${seen[$filename]}" != 1 ]
118 if [ -n "${prop[notshowin]}" ] && inlist icewm
';' "${prop[notshowin],,}"
122 if [ -n "${prop[onlyshowin]}" ] && ! inlist icewm
';' "${prop[onlyshowin],,}"
126 if [ -n "${prop[tryexec]}" ] && ! type "${prop[tryexec]}" >/dev
/null
2>&1
130 if [ "${prop[type],,}" != application
]
140 cmd
="x-terminal-emulator -e $cmd"