Firefox上的售货亭模式就像Linux上的铬一样?

发布于 2025-01-28 06:58:55 字数 929 浏览 2 评论 0原文

我有以下脚本:

#!/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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦巷 2025-02-04 06:58:55

解决方案是卸载Firefox并用快照安装铬。
解决了这个问题,铬效果很好。

Solution was to uninstall Firefox and install Chromium with snap.
Solved the problem and Chromium worked perfectly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文