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

04:49
I'm home. :D
05:18
hey @mahesh.
ping me when you are back.
05:29
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
so, is it pushed?
lemme pull.
whoa wait..
unity-reset got changed?
05:36
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.
ok. the reset code is fine.
what were the indentation errors?
05:40
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.
05:42
then mv it back
okay.
lemme fresh up and then I'll look at whats wrong with the tests.
btw, Good work. :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.
05:47
\o/
I so very love the current undocumented ones.
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
05:49
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.
06:06
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.
06:08
ok cya
06:24
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.
06:28
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.
06:34
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
06:59
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
try launcherfav.has('unity://desktop-icon')
error or it says true?
error
the python script works
the problem is writing a gschema for it
07:04
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
07:09
yup, but there has to be a better way.
wait...
'unity://desktop-icon' in launcherfav
I must be dumb. :/
07:14
its a list, basically.
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?
07:15
or false
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
07:20
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
07:22
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.
'unity://desktop-icon' not in launcherfav
07:24
yup that.
what next?
07:44
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.
08:01
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.
08:02
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.
08:04
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.
you cant give --enable and --disable at the same time.
08:05
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.
08:07
now how to debug the tests?
I'll be back after lunch
ok cya
08:20
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?
08:35
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
08:48
;p
We need to make a book too :P
take it easy
So, what's wrong with the tests?
it fails for me
message?
08:50
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?
08:52
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
09:02
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
@Mahesh Hello Mahesh's brother/sister/cousin :D
09:05
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
09:06
@AmithKK ~_~
hw old ru
I did have my cousins creep on to the computer :P
i am 53
I am 14 :P
09:07
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?
09:08
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
09:10
?
yeah, do you have his number?
chill out, guys, I let her in.
lemme finish my lunch.
haha XD
lies
you were trolling us
09:12
@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
09:15
@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
09:22
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
09:34
BYE
with a friend :P
o.o
dating someone \o/
@jokerdino yup that.
silly you
okay. lets figure out whats missing
09:40
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 ?
09:51
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?
09:59
occasionally, i get okay for all
sometimes, i fail the home lens reordering

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