
我有一個相對較新的 Debian 安裝 - 第一次安裝時,它沒有 gui,但我運行了apt-get install xinit
和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>
答案1
軟體包menu
提供 Debian 選單,必須安裝。
答案2
根據您的描述,如果之前未安裝該軟體包,則該軟體包似乎openbox
無法正常運作。menu
簡單的解決辦法就是將其Depend:
打開menu
。由於 Openbox 是一個輕量級視窗管理器,適用於可能不需要的小型系統menu
,因此最好修復 Openbox 的配置。請檢查是否可以在 Openbox 的原始安裝上重現此問題(儲存設定檔並清除軟體包)。如果可以的話,請檢查Debian 錯誤追蹤器查看是否已報告此問題,如果沒有,請報告。
答案3
菜單包提供了 Debian 菜單,必須安裝。
- 啟用 breezy Universe 儲存庫
- sudo apt-get 更新
- sudo apt-get 安裝選單