Debian

我的 debian-menu.xml 失去了

  • February 9, 2017

我有一個相對較新的 Debian 安裝——第一次安裝時,它沒有 gui,但我執行了apt-get install xinitand apt-get install openbox,所以當我執行時,startx我得到了一個 openbox 會話。

我的 openbox 菜單相當有限,並且.xsession-errors顯示

Openbox-Message: Unable to find a valid menu file "debian-menu.xml"
Openbox-Message: Unable t o find a valid menu file "/var/lib/openbox/debian-menu.xml"

當我檢查/var/libopenbox/debian-menu.xml那裡什麼都沒有。是否可以修復它以便 openbox 可以顯示 debian 菜單項?

編輯:

~/.config/openbox/rc.xml以下是我文件的摘錄:

<menu>
 <!-- You can specify more than one menu file in here and they are all loaded,
      just don't make menu ids clash or, well, it'll be kind of pointless -->

 <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
 <!-- system menu files on Debian systems -->
 <file>/var/lib/openbox/debian-menu.xml</file>
 <file>debian-menu.xml</file>
 <file>menu.xml</file>
 <hideDelay>200</hideDelay>
 <!-- if a press-release lasts longer than this setting (in milliseconds), the
      menu is hidden again -->
 <middle>no</middle>
 <!-- center submenus vertically about the parent entry -->
 <submenuShowDelay>100</submenuShowDelay>
 <!-- time to delay before showing a submenu after hovering over the parent
      entry.
      if this is a negative value, then the delay is infinite and the
      submenu will not be shown until it is clicked on -->
 <submenuHideDelay>400</submenuHideDelay>
 <!-- time to delay before hiding a submenu when selecting another
      entry in parent menu -->
      if this is a negative value, then the delay is infinite and the
      submenu will not be hidden until a different submenu is opened -->
 <applicationIcons>yes</applicationIcons>
 <!-- controls if icons appear in the client-list-(combined-)menu -->
 <manageDesktops>yes</manageDesktops>
 <!-- show the manage desktops section in the client-list-(combined-)menu -->
</menu>

menu軟體包提供 Debian 菜單並且必須安裝。

根據您的描述,如果之前未安裝該軟體包,則該openbox軟體包似乎無法正常執行。menu簡單的解決方法是將其Depend:打開menu。由於 Openbox 是一個輕量級的視窗管理器,適用於可能不需要的小型系統menu,因此最好修復 Openbox 的配置。請檢查您是否可以在 Openbox 的原始安裝上重現此問題(保存您的配置文件並清除軟體包)。如果可以,請檢查Debian 錯誤跟踪器以查看是否已報告此問題,如果沒有,請報告。

引用自:https://unix.stackexchange.com/questions/36731