psst icon indicating copy to clipboard operation
psst copied to clipboard

Kiosk mode

Open SO9010 opened this issue 1 year ago • 10 comments

This is a PR for issue #528. It is essentially done and can be run by adding the system command psst-gui -- --k or psst-gui -- --kiosk to run in kiosk mode.

What I have implemented is that it opens everything in full screen without window decorations. Additionally, the settings are shown directly after logging in with a button to close it, so the settings are set but cannot be changed as I removed the button to access settings.

I have it so that when this kiosk mode is enabled, the keyboard shortcuts don't work (even though they also only work on Mac), and it cannot be exited in this way.

I think that the keyboard shortcuts to access the desktop need to be done on the system level because I can't interrupt things like clicking the super key. Correct me if I'm wrong. If I'm not, this should be ready to be merged with the MR with @jacksongoode's approval.

SO9010 avatar Sep 25 '24 19:09 SO9010

This doesn't appear to fullscreen on macOS. I'm trying to figure out why. I just get a borderless small window.

jacksongoode avatar Sep 26 '24 19:09 jacksongoode

@SO9010 I made a few tweaks so that on macOS this works. I've also confirmed that the binary can be run as psst-gui -k or psst-gui --kiosk. Happy to merge if those changes look good on Windows and Linux for you

jacksongoode avatar Sep 26 '24 20:09 jacksongoode

This doesn't appear to fullscreen on macOS. I'm trying to figure out why. I just get a borderless small window.

Heya same issue on Linux!

SO9010 avatar Sep 27 '24 10:09 SO9010

Need to lint I'll do that tomorrow evening.

SO9010 avatar Sep 27 '24 18:09 SO9010

Linted, should be good!

jacksongoode avatar Sep 27 '24 20:09 jacksongoode

So I believe there is not way to get this to actually work for the raspberry pi due to upstream limitations.

But as it still works for windows and Mac do you think we should still merge it then I could detail how to get it working on any Linux system (by using a different window manager). Maybe as suggested we should rename this to --start-maximize. We could perhaps then add other options like --no-prefrence-cog and then --no-title-bar and we mention the limitations that on some systems it will still show the title bar.

What do you think @jacksongoode

SO9010 avatar Sep 28 '24 08:09 SO9010

Sure, I think that's probably a good approach. We could separate each one of these features into individual flags that could be passed altogether to create the kiosk mode experience.

jacksongoode avatar Sep 30 '24 01:09 jacksongoode

Or I'm also fine with merging this as it is? It doesn't have any immediate effect and if people want it to me more granular we can make another PR to expand it.

jacksongoode avatar Oct 07 '24 04:10 jacksongoode

Yeah that works I can open another issue stating things we need to add/change about the readme

SO9010 avatar Oct 07 '24 18:10 SO9010

Sorry I just tried this out and the sign in window is a bit odd? Do we actually need a completely separate styled window for the kiosk mode?

jacksongoode avatar Oct 16 '24 23:10 jacksongoode

Closing due to not needing it imo

SO9010 avatar May 18 '25 20:05 SO9010