Merge lp:~sil2100/unity/keybindings-migrations into lp:unity
| Status: | Rejected |
|---|---|
| Rejected by: | Łukasz Zemczak on 2012-09-07 |
| Proposed branch: | lp:~sil2100/unity/keybindings-migrations |
| Merge into: | lp:unity |
| Diff against target: |
278 lines (+253/-0) 5 files modified
tests/migration-scripts/test_keybinding_migration.py (+123/-0) tools/convert-files/global-unity-keybindings.convert (+59/-0) tools/convert-files/keybindings-active-unity.convert (+2/-0) tools/convert-files/keybindings-unity.convert (+2/-0) tools/migration-scripts/03_migrate_keybindings_to_gsettings.py (+67/-0) |
| To merge this branch: | bzr merge lp:~sil2100/unity/keybindings-migrations |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Timo Jyrinki | 2012-09-06 | Needs Fixing on 2012-09-07 | |
|
Review via email:
|
|||
Commit Message
Initial version of keybinding convert files for unity
Description of the Change
- Problem:
Currently, the migration script and .convert files for migrating GSettings files do not migrate keybindings for the unity profile.
- Fix:
Adding those keybinding changing .convert files to unity. Also, preparing another session-migration script that would run the gsettings-
- Tests:
Attached a pymock script for testing the script functionality, based on the migrations tests script by Francis.
| Didier Roche (didrocks) wrote : | # |
| Timo Jyrinki (timo-jyrinki) wrote : | # |
Didier: They are in compiz already, that's where these were copied from.
Łukasz: the exec needs to be changed to run-command-
| Didier Roche (didrocks) wrote : | # |
@Timo: where in unity?
I can see tools/convert-
Those convert keys though are not dependent of any profile (apart from the HUD key which is already converted into the unity profile), so tools/convert-
However, the rest of the keys are not linked to any profiles (default or unity) at all, and so, need to be in compiz, as told.
| Timo Jyrinki (timo-jyrinki) wrote : | # |
Ok, I thought you meant the key migrations needing to be in Compiz sources, since you mentioned "without unity installed". They've been in compiz under postinst/
| Didier Roche (didrocks) wrote : | # |
But, that's exactly what I meant, on this merge proposal:
- remove the HUD transition, uneeded apparently
- put all the other migrations in compiz, as it's generic and doesn't depend on any profile, so we want this to happen even for people not having unity installed and it's the right place to put them anyway.
| Didier Roche (didrocks) wrote : | # |
Also @Lukasz: as the metacity keys won't exist anymore on a new profile, please check on the guest sessions that the keys are still populated with the default and not unsetted after this migration.
| Łukasz Zemczak (sil2100) wrote : | # |
Ok, I can move the global-keybinding bits to compiz. I would have to remove those from the profile .convert files in compiz though. I did it like this because I wanted to write one new migration script instead of two. Why is it so? Since the situation now looks like this:
- Compiz already has the keybinding conversions in its compiz Default profile .convert files (both active and non-active profile). So, essentially, when someone uses the Default profile, he already has the keybindings migrated. The migration only doesn't happen for Unity profile users, as Timo added those conversions to the default profiles only.
- The way it is now is that, since we already have the Default profiles covered by the default migration script, I only had to write one migration script for the unity case. If we decide to add the global keybindings in compiz executed for all profiles, we would have to have 2 additional migration scripts: one for migrating global keybindings (located in compiz) and one for migrating the hud key (located in unity).
Regarding the HUD key conversion - is it not required like this? Since, well, it needs to be converted from the unity active/non-active profile to the org.compiz.
| Didier Roche (didrocks) wrote : | # |
for the compiz part, I checked with Mirv and the part in compiz was wrongly merged into existing file in a previous merge proposal per profile, even if those keys are not per profile (and this merge proposal is redundant with them). The goal is to avoid to write 4 times exactly the same convertion key list as we have with this merge proposal (2 in compiz and 2 in unity), in addition, 2 of them will be useless as you move exactly the same keys.
So one place instead of 4 seems a big win to me ;)
the HUD key is already covered by one of your script in unity, look at them :)
Unmerged revisions
- 2658. By Łukasz Zemczak on 2012-09-06
-
Initial version of keybinding convert files for unity


Hum, I guess the compiz key migrations should be in compiz itself for people having compiz without unity installed and still having a good migration experience.
The hud one is needed in unity, indeed.