2

In electron, I can easily create a kiosk window by just adding a param kiosk: true. But in tauri, is there any way to achieve that? I searched their official doc and couldn't find any.

Note: Here I'm referring to creating a window in fullscreen without topbar/ header and borders and it prevents the users to interact with other OS functionalities unless the user exists/ closes the app.

emranio
  • 319
  • 2
  • 10

1 Answers1

1

In tauri.conf.json you can find and modify window params like

"windows": [
  {
    "fullscreen": true,
    "height": 600,
    "resizable": true,
    "title": "main",
    "width": 800,
    "alwaysOnTop": true,
    "maximized": false,
    "decorations": false
  }
]

for mas details read this: https://tauri.app/v1/api/js/window/#windowmanager

Viktor S.
  • 19
  • 1
  • it will probably work on windows as expected. (+1 for that) but this is not a kiosk. it just does what the property says. On macs, the top bar and dock can still be accessible by hovering the top and bottom edges. any ideas for macs? on macs, in kiosk mode, it also hides the dock and top bar. – emranio Oct 18 '22 at 15:47
  • @emranio on my mac, kiosk mode in chrome also does not disable the appearance of panels and works like normal full screen mode. – Viktor S. Oct 18 '22 at 23:34
  • I contacted tauri developers, and they said, currently it doesn't the feature. – emranio Dec 14 '22 at 04:56