铬亭模式:全屏并删除地址栏 [英] Chromium kiosk mode : Fullscreen and remove address bar

查看:80
本文介绍了铬亭模式:全屏并删除地址栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在树莓派3(官方Jessie)的信息亭模式下运行Chrome浏览器。

I am trying to run chromium browser in kiosk mode in raspberry pi 3(Official Jessie ).

这里是我的自动启动文件中添加的

Here is i've added in my autostart file

@point-rpi
@xset s noblank
@xset s off
@xset -dpms

@chromium-browser --kisok www.fb.com

很好,但是出现了一些问题。

This works fine but some problem occured.

浏览器没有在全窗口中打开,地址栏仍然存在于铬中

Browser is not opened in full window also the address bar is still present in chromium

那我该如何删除上述两项?

So how can i remove above two items

推荐答案

我遇到了类似的问题……我最终在。主目录中的xinitrc文件。

I had a similar issue ... I eventually used this in a .xinitrc file in the home directory.

#Disable DPMS.
xset -dpms
xset s off
xset s noblank

#Lets remove a lock file that could be caused due to a crash.
rm /home/pi/.config/chromium/SingletonLock

while true; do
    # Clean up previously running apps, gracefully at first then harshly
    killall -TERM chromium-browser 2>/dev/null;
    killall -TERM matchbox-window-manager 2>/dev/null;

    sleep 2;

    killall -9 chromium-browser 2>/dev/null;
    killall -9 matchbox-window-manager 2>/dev/null;

    # Launch window manager without title bar.
    exec matchbox-window-manager -use_titlebar no -use_cursor no -theme bluebox &

    # Run unclutter
    unclutter &

    # Launch browser.
    chromium-browser --incognito --kiosk --noerrdialogs --disable-translate --disable-cache --disk-cache-dir=/dev/null --disk-cache-size=1 --app=http://URL_TO_GO_TO

done;

我使用火柴盒Windows管理器,不得不进行其他一些调整,但这就是我正在使用的

I use the matchbox windows manager and had to make some other tweaks, but this is what I am using.

这篇关于铬亭模式:全屏并删除地址栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆