« first day (5 days earlier)      last day (148 days later) » 

4:49 AM
I'm home. :D
 
5:18 AM
hey @mahesh.
ping me when you are back.
 
5:29 AM
i am getting a couple of errors for resets on com.canonical.unity.dash and com.can.unity
not exactly errors but test failures
 
i'm back @jokerdino
 
okay
 
so, is it pushed?
 
yes
 
lemme pull.
whoa wait..
unity-reset got changed?
 
5:36 AM
yeah, i added stuff for org.compiz non reloco stuff
 
ok.
I chmod +xed it. you undoed that. lets keep the copy in repo executable.
 
oops.
i was fixing the indentation errors.
 
np.
the next time you pull, it should gt fixed. I'll check and push any fixes along with that.
 
hm?
 
ok. the reset code is fine.
what were the indentation errors?
 
5:40 AM
with things i added in in unity-reset.
for compizchildren.
i fixed it locally and pushed it;
 
okay.
 
so, occasionally, one of the two tests (unity.dash and unity) will fail.
the rest all will pash.
 
ask @AmithKK to set his whatever favorite editor to intelli-replace tabs with 4 spaces.
RAW TABS ARE EVIL
 
i use expand -t 4 file.py > file.fix
 
thats good. I never knew that.
 
5:42 AM
then mv it back
 
okay.
lemme fresh up and then I'll look at whats wrong with the tests.
btw, Good work. :D
 
:D
 
so you did a succesful merge. thats some good progress. :D
*with git
 
:P
i was prepping up the git for Marco to test.
when he tested, the org.compiz.integrated failed because i never called for compizchildren to be resetted.
which i then fixed overnight and pushed an hour ago.
and now, only dash and unity schema failing.
 
okay.
I'm going to document GTK python bindings as soon as we are done with this.
 
5:47 AM
\o/
 
I so very love the current undocumented ones.
 
hee
 
get some ubuntu dev to look into the f%$#ed up HTML on that page.
 
today is saturday.. :/
will annoy them on monday
 
okay.
you are our team's official upstream annoyer. :P
 
5:49 AM
yay \o/
 
I guess I could've used a better name though. :P
 
it's alright. we will assign roles later.
give me the link, we can annoy Jorge for the timebeing.
 
6:06 AM
Traceback (most recent call last):
  File "show-desktop.py", line 9, in <module>
    launcherfav.remove("application://nautilus.desktop")
AttributeError: 'Variant' object has no attribute 'remove'
$ cat show-desktop.py
#!/usr/bin/python

from gi.repository import Gio

gsettings=Gio.Settings("com.canonical.Unity.Launcher")
launcherfav=gsettings.get_value("favorites")
print launcherfav
#gsettings.reset("favorites")
launcherfav.remove("application://nautilus.desktop")
print launcherfav
@Mahesh --^
 
why use.remove?
 
how to?
 
what does print launcherfav give?
 
it prints the array
$ python show-desktop.py
['application://ubiquity-gtkui.desktop', 'application://nautilus-home.desktop', 'application://firefox.desktop', 'application://libreoffice-writer.desktop', 'application://libreoffice-calc.desktop', 'application://libreoffice-impress.desktop', 'application://ubuntu-software-center.desktop', 'application://ubuntuone-installer.desktop', 'application://ubuntu-amazon-default.desktop', 'application://UbuntuOneMusiconeubuntucom.desktop', 'application://gnome-control-center.desktop', 'unity://running-apps', 'unity://expo-icon', 'unity://devices']
 
be back soon.
 
6:08 AM
ok cya
 
6:24 AM
try gsettings.set_strv('favorites',[])
 
how do i add to the existing list?
 
blame GVariant.
looks complicated. lemme see.
 
ok thanks
 
You actually make a GVariantBuilder object and then add values to it.
 
o.O
 
6:28 AM
or use get_strv to get an ordinary String array which can be manipulated and converted back.
but then comparision will be a pain.
 
shrug
 
we just want to test resetting, right?
then clear as I said, and then reset.
easiest hack.
 
not resetting but adding show desktop.
another small hack
 
good.
use get_strv() to get a array.
 
shiny.
 
6:34 AM
then lets see if you can .append('whatever') to it.
 
ok will do
 
if ok, use set_strv(key,array) to write back.
 
success
 
:) congrats.
 
$ cat show-desktop.py
#!/usr/bin/python

from gi.repository import Gio

gsettings=Gio.Settings("com.canonical.Unity.Launcher")
launcherfav=gsettings.get_strv('favorites')

if launcherfav.count("unity://desktop-icon") == 1:
    launcherfav.remove("unity://desktop-icon")
    gsettings.set_strv('favorites',launcherfav)
else:
    launcherfav.append("unity://desktop-icon")
    gsettings.set_strv('favorites',launcherfav)
@mahesh --^
now your turn to do whatever you want to do
now we need to write a gschema.xml
 
6:59 AM
why do we need a schema?
 
well, it has to go to gsettings somewhere right?
currently, there is no option to do that from dconf-editor etc when it used to.
 
okay.
fire a python shell, import Gio, get launcherfav and ping me
 
done
 
try launcherfav.has('unity://desktop-icon')
error or it says true?
 
error
the python script works
the problem is writing a gschema for it
 
7:04 AM
and the error is?
 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'list' object has no attribute 'has'
 
@jokerdino I know. I want to set up switches instead of a script that silently toggles.
 
okay then
 
best practice: let the default be to tell user what to do, instead of silently doing things.
 
good idea o.O
@Mahesh i am going with count to check if it is there alrady
if 1, then yes. if 0, then no
 
7:09 AM
yup, but there has to be a better way.
 
wait...
 
'unity://desktop-icon' in launcherfav
I must be dumb. :/
 
o.O
 
7:14 AM
its a list, basically.
 
yes
 
and thats the easiest way of looking if we have something in a list
1 min ago, by Mahesh
'unity://desktop-icon' in launcherfav
try that.
 
try what?
 
quoted one.
it should return true
 
am i not using it?
 
7:15 AM
or false
 
oh
 
thats the syntax.
 
try with what?
i am not sure what i should do
> launcherfav.has('unity://desktop-icon')
fail
 
python -c 'from gi.repository import Gio;launcherfav=Gio.Settings("com.canonical.Unity.Launcher").get_strv("favorites"‌​); print "unity://desktop-icon" in launcherfav;
 
pyton? lol
 
7:20 AM
or do sudo ln -s /usr/bin/pyton /usr/bin/python
 
you have an open quote somewhere
 
:P
do a closequote at the end.
forgot that.
 
invalid syntax
after end of favorites
 
aaaarrrrggggh
python shell.
import goddamn Gio
 
hehe
 
7:22 AM
get the launcher fav.
and then,
8 mins ago, by Mahesh
'unity://desktop-icon' in launcherfav
 
False
because there isn't any
 
thanks. :D
add a not if you are concerned.
 
not?
 
'unity://desktop-icon' not in launcherfav
 
True
 
7:24 AM
yup that.
 
what next?
 
7:44 AM
figure out where to add things to be able to use this from dconf
 
didn't i say gschema.xml in unity code?
@mahesh, i recall there was never such option in dconf.
but there was in compizconfigSM
we can take over tweak from ubuntu and put it there ;p
so, we don't need to put it here. just add it to ccsm or ubuntu tweak and what not
 
ok.
sexied up the show desktop.
pushing in a minute.
@jokerdino done.
pull and check it.
 
8:01 AM
ok pulling
 
and also advertise like hell if it works. :P
try all kinds of fancy tests.
its rock solid.
 
it adds on the top
 
or it should be, atleast.
 
instead of last
 
?
oh.
 
8:02 AM
it should be appended to the list
 
I am appending it.
 
weird
ok works fine
 
?
 
no idea.
i moved manually to last and then switching works fine
ok win
 
try fancy stuff.
default should be printing a help.
 
8:04 AM
20
Q: How to add a "Show desktop" icon to the launcher?

Aleksandar MaricakI recently upgraded from 10.04 to 12.04, and there is no show desktop in the launcher. I know I can use Ctrl+Super+D, but is there a way to get it in the launcher? Edit: I just installed the "show desktop" icon on the launcher with MyUnity (see below) and it worked fine. It did not install the ...

 
-h and --help should work
 
yeah, all are fine
 
and any other fancy option should throw an error.
 
yes
 
you cant give --enable and --disable at the same time.
 
8:05 AM
got it
 
-e or -d should also work.
now, thats what you call rock solid.
 
that's what i am using
 
--enable and --disable also work.
 
ok solid then
yeah, tested
 
cool.
 
8:07 AM
now how to debug the tests?
 
I'll be back after lunch
 
ok cya
 
8:20 AM
0
A: How to add a "Show desktop" icon to the launcher?

MaheshFor 12.10 Unity patch team at work! We have created a script that lets you enable/disable show-desktop icon. If you dont want to install a separate tool, grab our script and run it. It is hosted on bitbucket at https://bitbucket.org/jpmahesh/unity-reset Or if you are lazy and prefer not to op...

:P
 
so, can you now debug the tests and make it good enough for it to be merged to unity?
 
8:35 AM
room topic changed to Unity patch team: Unity reegressions, be ware! (no tags)
room topic changed to Unity patch team: Unity reegressions, beware! [12.10] [unity]
are you there @Mahesh?
room topic changed to Unity patch team: Unity regressions, beware! [12.10] [unity]
 
Appears
\o/ 12.10 by next week
 
we need to debug the tests and prepare it for unity trunk merger
 
1
A: How to add a "Show desktop" icon to the launcher?

MaheshFor 12.10 Unity patch team at work! We have created a script that lets you enable/disable show-desktop icon. If you dont want to install a separate tool, grab our script and run it. It is hosted on bitbucket at https://bitbucket.org/jpmahesh/unity-reset Or if you are lazy and prefer not to op...

After we do that
fork ubuntu-tweak and add that to it
 
@amith, once we get the unity reset to unity, we write a new config app.
 
<#
\o/
Unity Patcher X :P
 
8:48 AM
;p
 
We need to make a book too :P
 
take it easy
 
So, what's wrong with the tests?
 
it fails for me
 
message?
 
8:50 AM
test fail
we need people on 12.10 to test
 
Ok, will do
 
also, we need to update the unity.cmake
 
We have @jrg
Why?
oh right
 
because @mahesh wrote some weird things in untiyreset ;p
and i added new things as well
 
okie
lolwut
the terminal is broken?
 
8:52 AM
wut?
 
@jokerdino ?
 
it wasn't what it is in unity.cmake. that's what i am saying
you can't drop class in the current form, can you?
 
we actually can, but I prefer a rewrite of unity.cmake
 
good luck with that
 
optionparser thats used there is deprecated in python 2.7
i'll finish my lunch and come back
 
9:02 AM
Ok, wat
 
same reaction
i guess he will handle the tests and the unity.cmake
what shall we do then?
why dont you buggers get to 12.10?
 
watch?
Just send me the cd
 
hi this is apu
 
ape
 
@Mahesh Hello Mahesh's brother/sister/cousin :D
 
9:05 AM
O_O
what's going on?
 
hey imhs sis
the nly sis
 
@Mahesh How old are you :D
 
nice try o.O
 
@jokerdino play along :P
 
15
 
9:06 AM
@AmithKK ~_~
 
:P
 
hw old ru
 
I did have my cousins creep on to the computer :P
 
i am 53
 
I am 14 :P
 
9:07 AM
hey do u knw orongutons?
 
lies.
you are 12
 
lies
you are roland
 
@Mahesh I know Mahesh. Does that count?
 
u r 13nd 18 yaar
 
waar?
 
9:08 AM
nohes of same family
bt ntthe same genus
 
we are getting trolled
 
O.o
Yep
Damn... he's running ubuntu
I can't pull an exploit on his computer
 
@mahesh, run this command in a terminal
 
@jokerdino Should I call him
 
gnome-screensaver-command -l
2
 
9:10 AM
?
 
yeah, do you have his number?
 
Yep
 
chill out, guys, I let her in.
lemme finish my lunch.
 
haha XD
 
lies
you were trolling us
 
9:12 AM
@jokerdino good one. too bad she knows tne pass
 
@Mahesh o.O
why do you even have a password in that case?
 
@Mahesh sudo rm -rf then
 
@AmithKK NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
why dont ya guys let me have my lunch?
 
nope
you take way too long to finish your lunch
 
Damn
 
9:15 AM
@amith do me a favour
check what options you have in ccsm > unity plugin > experimental > mounts
where the hell did you go now @AmithKK?
 
ccsm wont start fast
@jokerdino I don't have a mounts
 
it is not mounts but sometihng like that
i guess it is devices
 
Only mounted
 
ok that.
do you see a dropdown?
 
yes
Never
 
9:22 AM
what options?
 
Only Mounted
Always
 
only 3?
@amith -^
 
yeah
 
in 12.10, we have a regression.
we don't have any such options ;D
so, by default, it always shows the mounts.
with the option to blacklist it from launcher, in which case, it becomes as never.
so, we should work on adding the third one? :D
@amith, pong
stop your sonic boom nonsense RIGHT NOW
 
@jokerdino Maybe :P
ttyl
 
9:34 AM
BYE
 
with a friend :P
 
o.o
dating someone \o/
 
@jokerdino yup that.
 
silly you
 
okay. lets figure out whats missing
 
9:40 AM
FAIL: test_dash_form_factoring (__main__.TestUnityReset)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "unityunittests.py", line 55, in test_dash_form_factoring
    self.assertTrue(current==default)
AssertionError: False is not true

----------------------------------------------------------------------
Ran 8 tests in 1.741s

FAILED (failures=1)
 
why does that fail? :/
is it on bb?
 
yes
you haven't approved the commit i guess
never mind.
time to install virtualbox
 
?
 
nothing. i am going to test on virtualbox
 
I've heard 12.10 doesn't run on virtualbox ?
 
9:51 AM
it does
just performs pretty bad
 
great.
ok. not so great
 
need to download the final image :/
4 hours to completion
 
hmm...
:P
 
will be done over time
ok what next?
 
that test still fails?
 
9:59 AM
occasionally, i get okay for all
sometimes, i fail the home lens reordering
 

« first day (5 days earlier)      last day (148 days later) »