adding poc implementation for autostarting x11 applications
git-svn-id: svn://svn.openwrt.org/openwrt/packages@14479 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
886f9c6f72
commit
8179f73a3f
@ -31,6 +31,8 @@ desktop() {
|
|||||||
local cfg="$1"
|
local cfg="$1"
|
||||||
config_get autostart $cfg autostart
|
config_get autostart $cfg autostart
|
||||||
[ -n "$autostart" ] && eval $autostart &
|
[ -n "$autostart" ] && eval $autostart &
|
||||||
|
config_get fdo_compliance $cfg fdo_compliance
|
||||||
|
[ -n "`echo \"$fdo_compliance\" 2> /dev/null | grep autostart`" ] && exit # in case the environment provides its own functionality to do the autostart stuff exit here
|
||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
@ -39,11 +41,16 @@ start() {
|
|||||||
config_foreach screen screen
|
config_foreach screen screen
|
||||||
config_foreach graphic graphic
|
config_foreach graphic graphic
|
||||||
config_foreach input input
|
config_foreach input input
|
||||||
X $ARGS &
|
Xorg $ARGS &
|
||||||
|
sleep 1 # give the xserver some time get initialized
|
||||||
config_foreach desktop desktop
|
config_foreach desktop desktop
|
||||||
#test -d /etc/xdg/autostart || exit
|
test -d /etc/xdg/autostart || exit
|
||||||
#for elem in `ls /etc/xdg/autostart/`; do
|
sleep 1 # give the first x11 application some time to get present - afterwars we'll start the x11 autostart applications
|
||||||
# exec=`grep "^Exec=" "/etc/xdg/autostart/$elem"`
|
for elem in `ls /etc/xdg/autostart/`; do
|
||||||
# eval ${exec#*=} &
|
if grep "^Hidden=true" "/etc/xdg/autostart/$elem" > /dev/null; then
|
||||||
#done
|
continue
|
||||||
|
fi
|
||||||
|
exec=`grep "^Exec=" "/etc/xdg/autostart/$elem"`
|
||||||
|
eval ${exec#*=} &
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,8 @@ desktop() {
|
|||||||
local cfg="$1"
|
local cfg="$1"
|
||||||
config_get autostart $cfg autostart
|
config_get autostart $cfg autostart
|
||||||
[ -n "$autostart" ] && eval $autostart &
|
[ -n "$autostart" ] && eval $autostart &
|
||||||
|
config_get fdo_compliance $cfg fdo_compliance
|
||||||
|
[ -n "`echo \"$fdo_compliance\" 2> /dev/null | grep autostart`" ] && exit # in case the environment provides its own functionality to do the autostart stuff exit here
|
||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
@ -23,10 +25,15 @@ start() {
|
|||||||
config_load x11
|
config_load x11
|
||||||
config_foreach screen screen
|
config_foreach screen screen
|
||||||
TSLIB_TSDEVICE="/dev/event1" Xglamo $ARGS &
|
TSLIB_TSDEVICE="/dev/event1" Xglamo $ARGS &
|
||||||
|
sleep 1 # give the xserver some time get initialized
|
||||||
config_foreach desktop desktop
|
config_foreach desktop desktop
|
||||||
#test -d /etc/xdg/autostart || exit
|
test -d /etc/xdg/autostart || exit
|
||||||
#for elem in `ls /etc/xdg/autostart/`; do
|
sleep 1 # give the first x11 application some time to get present - afterwars we'll start the x11 autostart applications
|
||||||
# exec=`grep "^Exec=" "/etc/xdg/autostart/$elem"`
|
for elem in `ls /etc/xdg/autostart/`; do
|
||||||
# eval ${exec#*=} &
|
if grep "^Hidden=true" "/etc/xdg/autostart/$elem" > /dev/null; then
|
||||||
#done
|
continue
|
||||||
|
fi
|
||||||
|
exec=`grep "^Exec=" "/etc/xdg/autostart/$elem"`
|
||||||
|
eval ${exec#*=} &
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user