How to make the dash in Unity 2D open up full-screen?



Fortunately this is very simple now in 12.04

First open the Dash

enter image description here

Then click the maximize button:

enter image description here

This remembers the setting between Dash openings and session re-logins.

| improve this answer | |


I've found a workaround to do that.

Open the file /usr/share/unity-2d/places/dash.qml.

Find this code:

        if (currentPage != undefined) {
        currentPage.visible = false
    currentPage = page
    currentPage.visible = true
    dashView.dashMode = DashDeclarativeView.FullScreenMode //AND ADD THIS LINE

NOTE: I've tested this on the daily build of Unity-2d from PPA, I'm not sure it works on the Natty version.

EDIT: The code on the Natty version it's similar, and is between the line 42 and 50.

| improve this answer | |


This works in 11.10: add the same line, not in 'activateHome', put it it '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
                currentPage = undefined
                pageLoader.source = ""
        dashView.dashMode = DashDeclarativeView.FullScreenMode //THIS IS THE NEW LINE
| improve this answer | |


Just found how to fix it in Natty. Add the line:

dashView.dashMode = DashDeclarativeView.FullScreenMode

in function activateHome(). By example:

function activateHome() {
  pageLoader.source = "Home.qml"
  /* Take advantage of the fact that the loaded qml is local and setting
     the source loads it immediately making pageLoader.item valid */
  pageLoader.item.shortcutsActive = true
  dashView.activePlaceEntry = ""
  dashView.dashMode = DashDeclarativeView.FullScreenMode // ADD THIS LINE
| improve this answer | |

Hopefully this article covers what you want:


| improve this answer | |
  • 2
    thats for unity 3d – Evan Mar 18 '11 at 18:11
  • Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Stefano Palazzo Feb 1 '12 at 11:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.