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

Proposed by Shane Fagan
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-Tolomelli Approve
Jason Smith (community) Approve
Review via email: mp+44301@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jason Smith (jassmith) wrote :

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

review: Approve
Revision history for this message
Didier Roche-Tolomelli (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
Revision history for this message
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.

Revision history for this message
Shane Fagan (shanepatrickfagan) wrote :

Ok pushed it should be a little bit more descriptive now

Revision history for this message
Didier Roche-Tolomelli (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."

Revision history for this message
Shane Fagan (shanepatrickfagan) wrote :

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

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

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

Revision history for this message
Shane Fagan (shanepatrickfagan) wrote :

Oh ok then ill upload a merge in 10 minutes

Revision history for this message
Didier Roche-Tolomelli (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)