Merge lp:~shanepatrickfagan/unity/unity-replace into lp:unity

Proposed by Shane Fagan on 2010-12-20
Status: Merged
Merged at revision: 735
Proposed branch: lp:~shanepatrickfagan/unity/unity-replace
Merge into: lp:unity
Diff against target: 21 lines (+5/-1)
1 file modified
tools/unity.cmake (+5/-1)
To merge this branch: bzr merge lp:~shanepatrickfagan/unity/unity-replace
Reviewer Review Type Date Requested Status
Didier Roche Approve on 2011-01-06
Jason Smith (community) 2010-12-20 Approve on 2010-12-20
Review via email: mp+44301@code.launchpad.net
To post a comment you must log in.
Jason Smith (jassmith) wrote :

+1 helps users used to gnome-shell --replace

review: Approve
Didier Roche (didrocks) wrote :

Hi Fagan, thanks for the merge request and your work there.

I definitively see the added value of such an option to users. However, I think that we should make it clear that the design decision is to make it useless. This should be noted in the Help of the switch (maybe even adding an "compatibility" option group) and print a warning when using it telling it's useless.

review: Needs Fixing
Shane Fagan (shanepatrickfagan) wrote :

> Hi Fagan, thanks for the merge request and your work there.
>
> I definitively see the added value of such an option to users. However, I
> think that we should make it clear that the design decision is to make it
> useless. This should be noted in the Help of the switch (maybe even adding an
> "compatibility" option group) and print a warning when using it telling it's
> useless.

Cool ill fix that give me 10 minutes and ill add the text.

Shane Fagan (shanepatrickfagan) wrote :

Ok pushed it should be a little bit more descriptive now

728. By Shane Fagan <email address hidden> on 2010-12-21

Added a bit more text to the help to stress that --replace actually does the exact same thing as unity without --replace

Didier Roche (didrocks) wrote :

Thanks for that fagan, can you also achieve the second part of my request: "print a warning when using it telling it's useless."

Shane Fagan (shanepatrickfagan) wrote :

I thought my change did that, what wording would you want instead?

Didier Roche (didrocks) wrote :

Sorry, I'm maybe not clear. I meant "when you run unity --replace" print the warning as well.

Shane Fagan (shanepatrickfagan) wrote :

Oh ok then ill upload a merge in 10 minutes

729. By Shane Fagan <email address hidden> on 2011-01-03

Added the other change didrocks asked for to print a message warning that the --replace switch shouldnt be used. One little thing though, with all the errors unity is putting out id say this message would be lost in them.

Didier Roche (didrocks) wrote :

Thanks fagan, I'll add a commit to replace Unity by unity in the warning as you are talking about the command line and not the shell :)

Merging it now, thanks for your work there!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tools/unity.cmake'
2--- tools/unity.cmake 2010-12-09 12:03:53 +0000
3+++ tools/unity.cmake 2011-01-03 12:30:19 +0000
4@@ -110,6 +110,7 @@
5 usage = "usage: %prog [options]"
6 parser = OptionParser(version= "%prog @UNITY_VERSION@", usage=usage)
7
8+ parser.add_option("--replace", action="store_true", help="Run unity /!\ This is for compatibility with other desktop interfaces and acts the same as running unity without --replace")
9 parser.add_option("--advanced-debug", action="store_true",
10 help="Run unity under debugging to help debugging an issue. /!\ Only if devs ask for it.")
11 parser.add_option("--log", action="store",
12@@ -123,5 +124,8 @@
13 set_unity_env()
14 if options.reset:
15 reset_unity_compiz_profile ()
16-
17+
18+ if options.replace:
19+ print ("WARNING: This is for compatibility with other desktop interfaces please use Unity without --replace")
20+
21 run_unity (options.verbose, options.advanced_debug, args, options.log)