Merge lp:~didrocks/unity-2d/subdatadir into lp:unity-2d
Proposed by
Didier Roche-Tolomelli
Status: | Merged |
---|---|
Approved by: | Aurélien Gâteau |
Approved revision: | 639 |
Merged at revision: | 639 |
Proposed branch: | lp:~didrocks/unity-2d/subdatadir |
Merge into: | lp:unity-2d |
Diff against target: |
61 lines (+22/-3) 2 files modified
libunity-2d-private/src/launcherapplicationslist.cpp (+20/-2) libunity-2d-private/src/launcherapplicationslist.h (+2/-1) |
To merge this branch: | bzr merge lp:~didrocks/unity-2d/subdatadir |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Aurélien Gâteau (community) | Approve | ||
Review via email: mp+70463@code.launchpad.net |
This proposal supersedes a proposal from 2011-08-04.
Description of the change
[launcher] Enable storing subdir (like kde4/) in the gsettings schema.
For instance /usr/share/
as kde4-konversati
This is valid for all .desktop file in XDG_DATA_
Note that full path and relative path are still supported
To post a comment you must log in.
Works fine, thanks!
I have a few remarks regarding implementation, though:
# Coding style
This file is old and does not comply with unity-2d coding style, but we try to ensure new code does comply. Changes to do are:
- Use camelCase for variables
- Use curly braces for single line ifs
- Attach opening curly brace with the previous line (ie: "if (foo) {", not "if (foo)\n{")
- Whenever possible, use const refs for looping variables in Q_FOREACH
See the CODING file at the root of the repository
# Implementation nDirs and implement the parsing this way:
- What you are storing in m_xdg_data_dirs is no longer the list of data dirs, it is the list of application dirs. I would suggest renaming the variable to m_xdgApplicatio
Q_FOREACH(const QString& dirName, xdgString. split(' :')) { ationDirs << QDir::cleanPath (dirName + "/applications/");
m_xdgApplic
}
- favoriteFromDes ktopFilePath( ) is no longer a static method but it does not modify the object, so it should be marked "const".