[dash] Home screen customization should be easy

Bug #670608 reported by Florian Boucault
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-2d
Fix Released
High
Olivier Tilloy

Bug Description

We want to be able to change what application shortcuts are displayed in the home screen easily.
At the moment the dash's home is described in the following QML file: /usr/share/unity-2d/places/Home.qml.

Implementation plan:
1. Extract in a separate QML file /usr/share/unity-2d/places/HomeShortcuts.qml the section of /usr/share/unity-2d/places/Home.qml that describes the list of shortcuts:

        Flow {
            anchors.fill: parent
            anchors.topMargin: 26

            [...]

            HomeButtonApplication {
                label: u2d.tr("Listen to Music")
                key: "/desktop/gnome/applications/media/exec"
            }
        }

2. Make Unity 2D try to first load a customized version of the shortcuts file that would be optionally present at /usr/share/unity-2d/places/HomeShortcutsCustomized.qml
3. If the customized version fails to load, load the standard version present at /usr/share/unity-2d/places/HomeShortcuts.qml

Related branches

Changed in upicek:
milestone: none → m3
status: New → Confirmed
importance: Undecided → Medium
Changed in upicek:
assignee: nobody → Florian Boucault (fboucault)
Changed in upicek:
milestone: m3 → m4
affects: upicek → unity-2d
Changed in unity-2d:
milestone: 0.4 → none
visibility: private → public
summary: - [dash] Home screen should be customizable
+ [dash] Home screen customization should be easy
description: updated
Changed in unity-2d:
milestone: none → 3.8.2
Revision history for this message
Bill Filler (bfiller) wrote :

I have a few comments about the proposed impl:
- This seems like a good idea if there is time. There should be a property in HomeButtonApplication (like "program" or "exe") to directly specify the executable as it may not always be appropriate to specify the key in gconf. So if program/exec is specificed use it, otherwise look up exe from the key.

- If not time a simpler solution that we discussed would be sufficient. That is when loading Home.qml first check for an alternative Home.qml in a given location (i.e. /usr/share/unity-2d-places/custom/Home.qml). If not found default to original Home.qml

Changed in unity-2d:
assignee: Florian Boucault (fboucault) → Olivier Tilloy (osomon)
Revision history for this message
Olivier Tilloy (osomon) wrote :

> - This seems like a good idea if there is time. There should be a property
> in HomeButtonApplication (like "program" or "exe") to directly specify the
> executable as it may not always be appropriate to specify the key in gconf.
> So if program/exec is specificed use it, otherwise look up exe from the key.

This is already implemented: HomeButtonApplication has a 'desktopFile' property: if it is set to a valid desktop file, and if the 'key' property is not set, then this desktop file will be used.

Bill Filler (bfiller)
Changed in unity-2d:
importance: Medium → High
Olivier Tilloy (osomon)
Changed in unity-2d:
status: Confirmed → In Progress
Changed in unity-2d:
status: In Progress → Fix Committed
Changed in unity-2d:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.