Is it possible to remove Weston toolbar?

人盡茶涼 提交于 2019-12-11 13:34:41

问题


Is it possible to have weston run without the toolbar at the top and change the background to black. So that when i have a script in init.d it calls weston first than my qt5 app? such as:

weston &
/home/root/app -platform wayland

回答1:


you can change the background settings in weston.ini. For the toolbar you just have to return 0 in want_panel function in clients/desktop_shell.c




回答2:


You can also just add panel-location string weston.ini [shell] section like this :

[shell] panel-location=""




回答3:


It is seemed it is determined by the shell/modules loaded when launching weston, by default desktop-shell.so is loaded. You can reference to the man page of weston.ini to try to change it.




回答4:


I had the same problem. This is solution:

open: /etc/xdg/weston/weston.ini

add:

panel-position=none

to this file

open terminal or debug, type:

systemctl restart weston

reboot




回答5:


To combine the possible solutions, just by adding the settings as below to your weston.ini helped me.

**[shell]
panel-location=""
panel-position=none**

Also, Weston.ini is picked up based on this precedence order:-

$XDG_CONFIG_HOME/weston.ini   (if $XDG_CONFIG_HOME is set)
$HOME/.config/weston.ini      (if $HOME is set)
weston/weston.ini in each
           $XDG_CONFIG_DIR           (if $XDG_CONFIG_DIRS is set)
       /etc/xdg/weston/weston.ini    (if $XDG_CONFIG_DIRS is not set)
       <current dir>/weston.ini      (if no variables were set)

where environment variable $HOME is the user's home directory, and $XDG_CONFIG_HOME is the user specific configuration directory, and $XDG_CONFIG_DIRS is a colon ':' delimited listed of configuration base directories, such as /etc/xdg-foo:/etc/xdg.



来源:https://stackoverflow.com/questions/30605949/is-it-possible-to-remove-weston-toolbar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!