And starting X apps at start up of X is impossible under those desktops? I think that is unlikely because most desktops have a means of starting up applications when the desktop is started.pema wrote:I probably should inform Ive tried both Jessie lxde, openbox and matchbox. Jessie images tried is versions 2016 February.
Code: Select all
#!/bin/sh
openbox --config-file ~/.config/openbox/LXDE-rc.xml --startup epiphany-browserCode: Select all
xinit ./kioskCode: Select all
sleep 10
su -l pi -c "xinit ./kiosk"This is working very well for me on latest Raspbian Jessie and for tens of thousands of other users. Most of them won't boot into a browser environment, though, but I do, as I'm using it as a desktop replacement.pema wrote:Dear Gunther. I have tried your kiosk browser and can not get it to work. Im personally convinced this worked very well in older versions of Jessie but something was improved and nothing that used to work is not working in recent versions. I will now remove the raspberry as this is a dead end.
Code: Select all
echo "Kiosk Running"
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
# @xscreensaver -no-splash // commented out
xset -dpms
xset s off
@./kiosk
Code: Select all
#!/bin/sh
export DISPLAY=:0.0
kweb -JKAEr https://web site address & > /dev/null
while true; do
sleep 5m
WID=$(xdotool search --onlyvisible --class kweb)
xdotool windowactivate $WID key alt+r
done
First step: create a kiosk file in your home directory (You'll find examples in the kweb manual) and make it executable.Reini1000 wrote:how on earth can i autostart the Kweb Browser automatically without entering the Desktop? So that the user will only see the Webpage.
I have tried all methods which are described here, also I have read the Kweb manuals, but nothing works!![]()
I'm using the latest Jessie Image 3rd March 2016.
Please help me !!!!
Code: Select all
sudo xinit ./kioskCode: Select all
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
sleep 15
su -l pi -c "xinit ./kiosk"
exit 0
Strange, all my PRis boot this way ...Reini1000 wrote:Sorry not succesful, always end up in the command line doning nothing.
Code: Select all
X: user not authorized to run the X server, aborting.
Code: Select all
pi@raspberrypi:~ $
Code: Select all
xinit ./kiosksorry, also not working... same problem with user rights.gkreidl wrote:You could also try the following:
su -l pi -c "xinit ./kiosk -- vt01"
sorry were is the file located ?RaTTuS wrote:at the end of .basrc
put
xinit ./kiosk
or more cleverly
if [ $(tty) == /dev/tty1 ]; then
xinit ./kiosk
fi
so it will only do it if logged on via terminal 1