Firefox上的售货亭模式就像Linux上的铬一样?
我有以下脚本:
#!/bin/bash
xset s noblank
xset s off
xset -dpms
unclutter -idle 0.5 -root &
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' /home/pi/.config/chromium/Default/Preferences
sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' /home/pi/.config/chromium/Default/Preferences
/usr/bin/chromium-browser --force-device-scale-factor=0.90 --noerrdialogs --disable-infobars --kiosk localhost &
done
它执行以下操作:它可以在全屏上打开浏览器,并沿其他内容禁用某些键的输入。因此,屏幕基本上只是浏览器内容本身,而没有任何视觉效果 - 它在全屏上运行,用户很难将其禁用,关闭浏览器等。
我的问题是:: 无论如何,我可以做同样的事情,但是在Firefox上? 我尝试使用-kiosk选项为此文档说,但它没有工作。
在有人说之前:我只在此操作系统上安装了Firefox,并想使用Firefox而不是Chromium进行此操作 - 因此,“只是卸载Firefox并安装Chromium”不是解决方案...
OS版本:Ubuntu 22.04
预先感谢!
I have the following script:
#!/bin/bash
xset s noblank
xset s off
xset -dpms
unclutter -idle 0.5 -root &
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' /home/pi/.config/chromium/Default/Preferences
sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' /home/pi/.config/chromium/Default/Preferences
/usr/bin/chromium-browser --force-device-scale-factor=0.90 --noerrdialogs --disable-infobars --kiosk localhost &
done
It does the following: It opens the browser on FULLSCREEN, and it disables the input of some keys like F11, along other things. So, the screen basically becomes just the browser content itself, without any visuals on it - It runs on fullscreen and it's difficult for the user to disable it, close the browser, etc.
My question is:
Is there anyway i can do the same thing but on Firefox?
I tried using the -kiosk option as this documentation said but it did'nt work.
Before someone says it: I only have Firefox installed on this OS and want to do this using Firefox, and not Chromium - So "Just uninstall firefox and install Chromium" isnt a solution...
OS Version: Ubuntu 22.04
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决方案是卸载Firefox并用快照安装铬。
解决了这个问题,铬效果很好。
Solution was to uninstall Firefox and install Chromium with snap.
Solved the problem and Chromium worked perfectly.