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

(wpe-webkit-mir-kiosk) - Launch homepage on idle #710

Open
cails07 opened this issue May 7, 2024 · 3 comments
Open

(wpe-webkit-mir-kiosk) - Launch homepage on idle #710

cails07 opened this issue May 7, 2024 · 3 comments

Comments

@cails07
Copy link

cails07 commented May 7, 2024

Hi all,

I'm using ubuntu-frame with wpe-webkit-mir-kiosk as a web kiosk. There is one specific page on the website which I'm displaying (the sign-in page) where there are no links back to the homepage until after you sign-in. If a guest enters this page and walks away, I have no way for the next guest to use the kiosk unless I manually restart the session.

Is there an ability to force a relaunch of the homepage if any page sits idle for a specific period of time?

Thanks in advance

@vrazzer
Copy link

vrazzer commented May 9, 2024

I have not seen any such functionality within cog. Any reason you are not using javascript? A super crude return-to-home after 60 seconds on a page :

if (history.length > 1)
setTimeout(() => history.go(1-history.length), 60*1000);

@cails07
Copy link
Author

cails07 commented May 13, 2024

Thanks vrazzer,
Unfortunately I don't control the website of the page being displayed so I'm unable to deploy javascript to achieve this result.

@vrazzer
Copy link

vrazzer commented May 14, 2024

Understood. For COG, I dealt with this situation by adding a signal handler for "load-changed" and then calling webkit_web_view_run_javascript() on the view. That allows injecting arbitrary javascript into pages you cannot change. Might be a consideration if you are building mir-kiosk from source. Good luck.

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

No branches or pull requests

2 participants