Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In debian bookwork kiosk autostart doesn't work #5

Closed
douglashetherington opened this issue Dec 9, 2023 · 4 comments · Fixed by #6
Closed

In debian bookwork kiosk autostart doesn't work #5

douglashetherington opened this issue Dec 9, 2023 · 4 comments · Fixed by #6
Assignees

Comments

@douglashetherington
Copy link

douglashetherington commented Dec 9, 2023

Love this project - great work thank you!

It looks like the way autostart works has changed in bookworm - See this thread: https://forums.raspberrypi.com/viewtopic.php?t=357858

$HOME/.config/lxsession/LXDE-pi/autostart now seems to be ignored.

It looks like it's now using ~/.config/wayfire.ini to look for autostart items adding:

[autostart]
kiosk=bash /home/douglash/kiosk/kiosk.sh && sleep 5 && xdotool key alt+F11

to the bottom of that file launches the app.

@payam-zahedi
Copy link
Member

Hi @douglashetherington

Thanks for sharing this to us.

Yes, we recognized that we have a problem with the newest version of the Raspberry Pi OS in kiosk mode command.
So we planned to fix it in the next version.

Did you test the new approach on your set-up?
Is it working completely? With full screen and so on?

@douglashetherington
Copy link
Author

douglashetherington commented Dec 12, 2023

Hi @payam-zahedi,

It successfully launches the app but full screen didn't work. I just quickly ended up changing the my_application.cc file in the flutter project to add

  gtk_window_set_default_size(window, 1280, 720);
  gtk_window_fullscreen(GTK_WINDOW(window)); // <--- Added this line
  gtk_widget_show(GTK_WIDGET(window));

Which makes it work. - I thought i'd hidden the cursor but unclutter isn't working. Which is a bit of a shame.

I came across Cage - i've not tried it yet but it could be what you guys want.

@payam-zahedi
Copy link
Member

Thanks @douglashetherington

we will look into this issue and will let you know about the future changes

@payam-zahedi
Copy link
Member

In the newest version of the Raspberry Pi OS, the default display manager is Wayland. So all the possibilities of X11 will not work.

I fixed this issue in #6 PR, so we are support both Wayland and X11.

As You may have noticed, there is only a problem with full screen mode.

Under Wayland, certain keyboard features like alt + F11 won't work to make apps full screen. Checkout this issue

I added another command for the full screen issue. You can run the enable_fullscreen in the root of your flutter project to change your setting in your app.

Let me know if you need more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants