News:

SMF - Just Installed!

Main Menu

Login script, just a white screen

Started by mahesh, Oct 17, 2023, 04:55 AM

Previous topic - Next topic

mahesh

Hi All,

I have a bash script (kiosk.sh, script is below) that launches two Brave web browser (v1.51.118) windows on separate screens, full screen on Ubuntu (22.04.2 LTS (GNU/Linux 5.19.0-42-generic x86_64)). I've done this using the 'startup programs' app.

This has been working fine until recently, but since some recent (can't remember which) updates all I now get is 2 blank white screens on reboot. No menu bars etc, but the underlying OS is fine. If I log out and back in again, everything works fine.

I've tried adding a delay to the autostart launch script by adding the following (bolded below):
Code:
nano ~/.config/autostart/kiosk.sh.desktop

[Desktop Entry]
Type=Application
Exec=/home/username/kiosk.sh
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
[b]X-GNOME-Autostart-delay=60[/b]
Name[en_GB]=Kiosk
Name=Kiosk
Comment[en_GB]=
Comment=
I've also checked the permissions for this startup script, and also my custom script:

Code:ls -l ~/.config/autostart/kiosk.sh.desktop
-rwxrwxr-x 1 username username 173 May 24 14:33 /home/username/.config/autostart/kiosk.sh.desktop

Code:
 ls -l kiosk.sh-rwxrwxr-x 1 username username 1369 May 30 11:19 kiosk.shI have also tried re-installing Brave.

But none of this seems to help.

Any ideas where I can look?





My custom browser launch code:

Code:
#!/usr/bin/bash
export DISPLAY=:0.0


xset s noblank
xset s off


/usr/bin/brave-browser --new-window --noerrdialogs --disable-infobars --kiosk --window-position=0,1920 --user-data-dir="/home/username/Documents/Profiles/0" "http://INTERNAL_URL_1" &


/usr/bin/brave-browser --new-window --noerrdialogs --disable-infobars --kiosk --window-position=0,0 --user-data-dir="/home/username/Documents/Profiles/1" "http://INTERNAL_URL_2" &


sleep 30
xdotool mousemove 1670 1063 click 1
sleep 1