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

Subscribers

People subscribed via source and target branches