如何让 Unity 2D 中的 dash 全屏打开?
答案1
12.04
幸运的是,在 12.04 中这变得非常简单
首先打开 Dash
然后点击最大化按钮:
这会记住 Dash 打开和会话重新登录之间的设置。
答案2
11.04
我找到了一种解决方法。
打开文件/usr/share/unity-2d/places/dash.qml
。
找到这段代码:
if (currentPage != undefined) {
currentPage.visible = false
}
currentPage = page
currentPage.visible = true
dashView.dashMode = DashDeclarativeView.FullScreenMode //AND ADD THIS LINE
}
注意:我已经在 PPA 的 Unity-2d 每日构建版上测试过此功能,但不确定它是否适用于 Natty 版本。
编辑:Natty 版本上的代码类似,位于第 42 行和第 50 行之间。
答案3
11.10
这在 11.10 中有效:添加相同的行,不在“activateHome”中,而是将其放入“Connections”中:
Connections {
target: dashView
onActiveChanged: {
if (!dashView.active) {
/* FIXME: currentPage needs to stop pointing to pageLoader.item
that is about to be invalidated otherwise a crash
occurs because SearchEntry has a binding that refers
to currentPage and tries to access it.
Ref.: https://bugs.launchpad.net/ubuntu/+source/unity-2d/+bug/817896
https://bugreports.qt.nokia.com/browse/QTBUG-20692
*/
deactivateActiveLens()
currentPage = undefined
pageLoader.source = ""
}
dashView.dashMode = DashDeclarativeView.FullScreenMode //THIS IS THE NEW LINE
}
}