
我在 rc.xml 中新增了一個新的鍵綁定,現在每次登入 Openbox 時都會收到此訊息。另外,右鍵選單也不再運作。
現在我自己修復了這個錯誤,但不幸的是我的 rc.xml 沒有第 749 行。 它以 748 結束。
這是我添加的,從 Arch Linux Wiki 複製的。
<!-- Keybindings for screenshots -->
<keybind key="Print">
<action name="Execute">
<startupnotify>
<command>sh -c "import -window root ~/Pictures/$(date '+%Y%m%d-%H%M%S').png"</command>
</action>
</keybind>
我更改了頂部的引用,它通常表示應該複製該文檔,否則它將被覆蓋。
我的作業系統是 Fedora 21,我使用原始 Openbox,現在我在 Gnome 中。
答案1
您需要使用<startupnotify>
相應的</startupnotify>
.
請參閱官方文檔。