Merge lp:~sladen/unity-2d/unity-2d-coding-documentation into lp:unity-2d

Proposed by Paul Sladen
Status: Superseded
Proposed branch: lp:~sladen/unity-2d/unity-2d-coding-documentation
Merge into: lp:unity-2d
Diff against target: 65 lines (+61/-0)
1 file modified
HACKING.txt (+61/-0)
To merge this branch: bzr merge lp:~sladen/unity-2d/unity-2d-coding-documentation
Reviewer Review Type Date Requested Status
Michał Sawicz Needs Fixing
Review via email: mp+94563@code.launchpad.net

This proposal has been superseded by a proposal from 2012-02-24.

Description of the change

HACKING.txt: summary developer documentation to get people started

To post a comment you must log in.
937. By Paul Sladen

Note how to merge back documented on http://wiki.ubuntu.com/Unity2D#Coding (thanks to Florian)

Revision history for this message
Michał Sawicz (saviq) wrote :

40 + gconftool-2 --set --type=bool /apps/metacity/general/compositing_manager false
41 + killall metacity
42 + killall -9 unity-2d

No need to change the gconf key, just go `metacity --replace --no-composite`. There is no "unity-2d" process, either. You also need to kill unity-2d-shell twice for the first time, 'cause gnome-session respawns it.

--8<--

47 + gconftool-2 --set --type=bool /apps/metacity/general/compositing_manager true
48 + killall metacity
49 + killall -9 unity-2d

Same as above - `metacity --replace --composite` and there's no "unity-2d" process.

--8<--

60 +If you want to proposed and merge your changes back into the main tree, see:

Maybe "If you want to propose your changes for merging back into the main tree, see:"?

review: Needs Fixing
938. By Paul Sladen

Tweak HACKING.txt compositing and contributoring advice (thanks to Michał Sawicz)

939. By Paul Sladen

HACKING.txt: document more specifically the first-time double killall requirements (thanks to (Albert Astals Cid)

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'HACKING.txt'
--- HACKING.txt 1970-01-01 00:00:00 +0000
+++ HACKING.txt 2012-02-24 15:17:30 +0000
@@ -0,0 +1,61 @@
1TL;DR:
2
3 sudo apt-get build-dep unity-2d
4 cmake .
5 make -j4 && (killall -9 unity-2d-shell ; sleep 1 && ./shell/app/unity-2d-shell &)
6
7
8Longer version
9
10To build trunk:
11
12 1. Install build dependencies (on Ubuntu):
13
14 apt-get build-dep unity-2d
15
16 2. Qt/QML preprocessing/preparation stage (the '.' is essential):
17
18 cmake .
19
20 3. Compile (in parallel on four CPUs):
21
22 make -j4
23
24 4. Test:
25
26 killall -9 unity-2d
27 ./shell/app/unity-2d-shell &
28
29 To do iterative compile+test, you can use the command:
30
31 make -j4 && (killall -9 unity-2d-shell ; sleep 1 && ./shell/app/unity-2d-shell &)
32
33 5. Test again with non-compositing window-manager mode (eg. different assets
34 such as './shell/common/artwork/desktop_dash_background_no_transparency.sci'):
35
36 gconftool-2 --set --type=bool /apps/metacity/general/compositing_manager false
37 killall metacity
38 killall -9 unity-2d
39 ./shell/app/unity-2d-shell &
40
41 6. Restore compositing mode:
42
43 gconftool-2 --set --type=bool /apps/metacity/general/compositing_manager true
44 killall metacity
45 killall -9 unity-2d
46 ./shell/app/unity-2d-shell &
47
48Debugging output:
49
50 a. From Qt C++ code:
51
52 qDebug() << "foobar=" << foobar;
53
54Finally:
55
56If you want to proposed and merge your changes back into the main tree, see:
57
58 http://wiki.ubuntu.com/Unity2D#Coding
59
60
61Have fun! -Paul Sladen, 2012-02-24 from advices of the DX team!

Subscribers

People subscribed via source and target branches