« first day    last day (153 days later) » 
04:00 - 14:0014:00 - 21:00

4:44 AM
thats good.. :) we can also add the dconf way may be. what say?
 
5:24 AM
@mahesh move over here
 
okay.
 
gsettings list-children com.canonical.Unity
com.canonical.Unity                   com.canonical.Unity.Launcher
com.canonical.Unity.ApplicationsLens  com.canonical.Unity.Lenses
com.canonical.Unity.Dash              com.canonical.Unity.Panel
com.canonical.Unity.Devices           com.canonical.Unity.Runner
com.canonical.Unity.FilesLens
 
gsettings list-keys com.canonical.unity
 
gsettings list-keys com.canonical.Unity
form-factor
home-expanded
minimize-count
minimize-fast-duration
minimize-slow-duration
minimize-speed-threshold
 
oh man..
 
5:25 AM
exactly.
 
so these are important stuff, and good stuff.
 
these have schemas
 
We'll be distributing the script separately, or via a ppa I believe..
 
we would get it into 13.04 for sure :)
 
I'm considering full argument parsing and stuff.
okay.
 
5:27 AM
okay, the script is python3 compatible
 
cool.
its on bitbucket.
 
good sire
but why not lp?
 
umm... I prefer git to bzr
 
but unity is on bzr/lp
 
ultimately, we'll have it on lp.
 
5:33 AM
okay
 
or should we migrate it now?
 
anything works.
 
okay, now how do we go about resetting these things?
 
individual?
 
`gsettings list-children com.canonical.unity`
and then reset recursively each?
 
5:40 AM
yeah?
 
okay.
 
that command doesn't show anything
i think it is list-keys
 
gsettings list-children com.canonical.Unity
 
no output
 
umm... wait.
 
5:44 AM
you mean list-recursively?
 
@jokerdino how did this work then?
 
@Mahesh no idea
 
:(
 
i can't get the same result again.
 
just a min
okay. no you say that was not reproducible?
 
5:50 AM
yeah
 
star that previous output.
ok.
now we'll have to manually loop through things.
wait..
 
go on
 
I'm back
 
welcome back
 
So, we're porting to python3?
 
5:56 AM
it's p3 compatible
 
yeah
 
unityChildren=["com.canonical.Unity","com.canonical.Unity.Launcher","com.canonical.Unity.ApplicationsLens","com.canonical.Unity.Lenses","com.canonical.Unity.Dash","com.canonical.Unity.Panel","com.canonical.Unity.Devices","com.canonical.Unity.Runner","com.canonical.Unity.FilesLens"]
for child in unityChildren:
#    subprocess.Popen(unityresetter,shell=True, stdout=subprocess.PIPE).communicate()
     print "====="+child+"====="
     subprocess.call("gsettings list-keys "+child,shell=True)
I need output for that snippet to check.
 
File "unitychildren.py", line 4
    print "====="+child+"====="
                ^
SyntaxError: invalid syntax
 
py2 or py3?
 
@Mahesh Its print("====="+child+"=====")
now
 
5:59 AM
oops. p3
 
@AmithKK in py3. I assumed py2.
 
$ python unitychildren.py
=====com.canonical.Unity=====
form-factor
home-expanded
minimize-count
minimize-fast-duration
minimize-slow-duration
minimize-speed-threshold
=====com.canonical.Unity.Launcher=====
favorite-migration
favorites
=====com.canonical.Unity.ApplicationsLens=====
display-available-apps
display-recent-apps
=====com.canonical.Unity.Lenses=====
remote-content-search
=====com.canonical.Unity.Dash=====
home-lens-ordering
=====com.canonical.Unity.Panel=====
systray-whitelist
=====com.canonical.Unity.Devices=====
 
now, all these are nonrelocatable schemas.
 
yep
 
and, everything looks decent enough that we can happily reset them. right?
 
6:01 AM
i guess
 
@Mahesh yeah
except systray-whitelist
we should preserve that
 
reset everything.
 
Did the old unity --reset do that?
 
we'll deal with it after talking to unity devs
 
and also home lens ordering and blacklist and others..
 
6:02 AM
there should be args
 
wait.. looks like these things need to be preserved. all of them.
 
unity --reset would remove thse.
 
okay. I'll add full argument parsing support and modularise.
 
unity --reset --preserve {item1,item2}
 
time to invoke argparse
 
6:04 AM
cut the args.
unity --reset doesn't take any arg
 
i can't access port 9001
 
can you access 443?
(https)
 
I guess
 
:/ I'm getting an error
one sec
 
6:10 AM
or just put it on pastebin
 
lets use a public etherpad.
 
@jokerdino Either you have not been granted access to this resource or your entitlement has timed out. Please try again.
 
try again
you need to login to launchpad.
 
hmm.. looks like I lost touch with argparse.
 
6:21 AM
why are we doing argparse?!?!?!
can't we just reset everything and then talk to devs about what to keep and what not
 
umm.. okay.
unity children thingys reset.
next?
 
unity --replace in the script
 
done.
 
ok time to try
 
@AmithKK you cant login?
 
6:25 AM
 def resetPlugins:
                    ^
SyntaxError: invalid syntax
 
Nope :(
 
forgot those stupid parantheses.
 
@amith i dont know why but mahesh can.
 
try again.
forgot those stupid parantheses.
try again.
@AmithKK what does it say?
 
Either you have not been granted access to this resource or your entitlement has timed out. Please try again.
 
6:27 AM
Traceback (most recent call last):
  File "./unity-reset.py", line 22, in <module>
    resetUnityChildren()
  File "./unity-reset.py", line 19, in resetUnityChildren
    subprocess.call("gsettings reset-recursively "+child)
  File "/usr/lib/python2.7/subprocess.py", line 493, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
    raise child_exception
 
It is a public pad. :|
 
@amith are you not logged into launchpad, etc.
you need to be signed in, with all checkmarks
 
You are currently logged in as login.ubuntu.com/+id/JDs6NLz.
All the checkmarks are enabled
 
i think it hates you.
 
i forgot to add shell=True.
try again
 
6:29 AM
ok good
neato
now put the script on a pastebin and i'll annoy the devs when they wakeup
 
did we forget anything?
 
not that i can think of
 
why didn't we use a gist? :P
okay.
have a class now.
 
cya
 
will be back after I relocate.
5 minutes.. :P
 
6:31 AM
hee
 
How do I remove all iptable rules :P
 
no idea
 
I'l be back later
cya
 
cya
 
and I'm back.
now, does this reset launcher totally/.
 
6:40 AM
yees
 
as in, launcher size, icons, and stuff?
 
not sure about size but icons yes
 
try it, buddy.
 
ok
 
try it, buddy.
 
6:42 AM
yipppie
 
:D
think of other things that we need to check
 
enough :P
@mahesh, can i get the bounty so i can reinvest in canonical question? :P
 
sure.. :)
 
or you can take the bounty and put it back.
or whatever. i'll do it anyway
 
either way, its ok.
your call.
 
6:50 AM
you take the bounty.
i have enough.
 
whats the canonical question?
 
regarding "low graphics mode" error
 
how can that be the canonical one for this/
 
what?
we have twenty different questions on that error. i just need to get a canon question so we can dupe it together.
so i have a question. i need bounty to get people to write answers.
 
oh. okay. I get it.
 
6:54 AM
i'll put a bounty once i sort out the 100 bounty.
 
ok.
blame my network. switched to usb dongle.
 
gd luck o.O
 
its much better this wway, atleast the connection wont drop.
 
but isn't it slow?
 
yup. terribly slow.
 
6:59 AM
heeee
 
compared to 10Mbps available from college wifi, 3Mbps advertised for dongle is very slow.
can you locate the unity children in dconf?
 
i'll check
yeah
 dconf read /com/canonical/unity/launcher/favorites
['application://nautilus-home.desktop', 'application://firefox.desktop', 'application://polly.desktop', 'application://tomboy.desktop', 'application://gtg.desktop', 'application://gnome-terminal.desktop', 'application://gedit.desktop', 'application://gnome-control-center.desktop', 'unity://running-apps', 'unity://expo-icon']
 
so all these are under com/unity/canonical
 
i think so
it is one of the modified settings.
dconf only shows non default things
 
dconf dump /com/canonical/unity/
@jokerdino yup. and thats good and bad.
 
7:03 AM
dconf dump /com/canonical/unity/
[devices]
blacklist=['18B4B7BBB4B799A8-OS', '75065C917775DC5A-']

[launcher]
favorites=['application://nautilus-home.desktop', 'application://firefox.desktop', 'application://polly.desktop', 'application://tomboy.desktop', 'application://gtg.desktop', 'application://gnome-terminal.desktop', 'application://gedit.desktop', 'application://gnome-control-center.desktop', 'unity://running-apps', 'unity://expo-icon']
 
crazy idea.. how can I change the defaults? :P
 
you can't
 
I
HATE
CLIPPY
 
you don't
how do i hate clippy?
 
it just popped up coz it saw the word defaults.
@jokerdino WHAT????
 
7:04 AM
it comes for "how do I" or "how can I"
it also comes for "I want to"
it's an easter egg in SU room
 
good.
yup, I read that.
should we fix that call() ?
 
what does it do?
 
its always better to use argument lists, rather than use a string.
 
i don't know..
you want to join #ubuntu-unity?
 
I'm considering...
coming in..
and... I've joined.
 
7:08 AM
good
i am looking for the bug report
 
where is that bug?
even I cant find any. :(
 
there was one.
need to search the forums
who wants to write a unity configuration tool now ? :P
 
: |
GUI, never tried that.
 
we take the base code from unsettings and add on
 
7:23 AM
hmm.. looks good.
lunch time followed by lab.
cya later.
 
cya
 
7:33 AM
@amith, package it bro~
 
 
1 hour later…
8:36 AM
I'm back and ready
@jokerdino There?
 
8:59 AM
hi @amith
 
@jokerdino Where is the final script?
 
pastebin
 
9:14 AM
@jokerdino What's the version of dconf tools you have?
 
0.14
 
9:26 AM
amith@amith-desktop:~$ dput ppa:amith/ubuntutools unity-reset_0.1-1_source.changes
Checking signature on .changes
gpg: Signature made Mon 15 Oct 2012 02:53:11 PM IST using RSA key ID D7925E3B
gpg: Good signature from "Amith <amithkumaran@gmail.com>"
gpg:                 aka "Amith kk <amithkumaran@gmail.com>"
Good signature on /home/amith/unity-reset_0.1-1_source.changes.
Checking signature on .dsc
gpg: Signature made Mon 15 Oct 2012 02:53:11 PM IST using RSA key ID D7925E3B
gpg: Good signature from "Amith <amithkumaran@gmail.com>"
win
 
yay.
is it packaged for 12.10?
 
yep
anything :D
 
nice!!
 
10:16 AM
@amith, need your control file
inside debian/control
 
Source: unity-reset
Section: quantal
Priority: extra
Maintainer: Amith <amithkumaran@gmail.com>
Build-Depends: debhelper (>= 8.0.0)
Standards-Version: 3.9.2
Homepage: <insert the upstream URL, if relevant>
#Vcs-Git: git://git.debian.org/collab-maint/unity-reset.git
#Vcs-Browser: git.debian.org/?p=collab-maint/unity-reset.git;a=summary

Package: unity-reset
Architecture: all
Depends: dconf-tools (>=0.14)
Description: Replaces unity --reset in quantal and above
 Script to reset unity in quantal and above.
 
oops
python
the section should be python
15
Q: How do I create a deb package for a single python script?

sagarchaliseI have a single python script that I want to distribute as a deb package. It is a indicator which shows local date in Unity panel. I did follow create a .deb Package from scripts or binaries but I could not create a deb package because it fails. Can someone give me a step-by-step instruction on...

 
Rejected:
unity-reset_0.1-4.dsc: Unknown section 'control'
unity-reset_0.1.orig.tar.gz: Unknown section 'control'
unity-reset_0.1-4.diff.gz: Unknown section 'control'
Further error processing not possible because of a critical previous error.
Facepalm
@jokerdino --^^
 
you need to up your version number
 
I did, from 0.1-3 to 0.1-4
 
10:23 AM
hold on
 
LAAAUUNNCHHPAAAD
 
i'll create the folder for you.
you just upload it to lp later
@amith, just put the section as gnome for now ;p
wait whoa.
did you put control in section field??!
 
O.o
 
what did you have now?
 
python
 
10:32 AM
> Unknown section 'control'
what is that?
 
I have no Idea
 
check for temp files
or start all over
 
Last upload
 
what?
reject reject !
 
Accepted:
 OK: unity-reset_0.1.orig.tar.gz
 OK: unity-reset_0.1-5.diff.gz
 OK: unity-reset_0.1-5.dsc
     -> Component: main Section: python
What?!
awesome
 
10:36 AM
haha
good job
so was there any temp file?
 
I just wiped it
also
I think the control thing did it
 
i see
 
 
2 hours later…
12:18 PM
Bump
 
bumpitie bump
 
@jokerdino Did you see if the install worked?
 
no. ppa?
 
ok thanks
@AmithKK hurray. \o/
 
12:25 PM
works?
 
yes :D
 
nice
 
@amith, get @mahesh to post it on the question later :)
 
@jokerdino ok
 
1:07 PM
#!/bin/sh
value = $(gsettings get org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode)
if [ $value = 0 ]
then
 gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode 1
else
 gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode 0
fi
 bash launchy.sh
launchy.sh: line 2: value: command not found
launchy.sh: line 3: [: =: unary operator expected
 
@jokerdino its ==
your not assigning a variable
 
ah?
 
your checking it
 
oh
#!/bin/sh
value == $(gsettings get org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode)
if [ $value = 0 ]
then
 gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode 1
else
 gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode 0
fi
same error
 
not there
in the if statement
 
1:11 PM
same
$ bash launchy.sh
launchy.sh: line 2: value: command not found
launchy.sh: line 3: [: ==: unary operator expected
 
@jokerdino value must be be with $
 
no idea what that means
@amith, abandon the bash and get back to fixing the python script
 
Is it broken?
 
in Ask Ubuntu General Room, 1 min ago, by Jorge Castro
didrocks | jcastro_: after a first quick review, it would be better to use the python gobject gsettings binding rather than calling subprocess if possible
 
@jokerdino No spaces required
@jokerdino OMG! gio
 
1:15 PM
@AmithKK omg you are awesome!
@AmithKK gggio
 
okie
 
bash script works.
ok where's our lead programmer?
it's going to be fun time :)
 
He's in the lab
 
ok you and me on this
set up etherpad
i can't access your etherpad.
 
still broken
 
1:22 PM
i'll create new etherpad.
@amith join this team - launchpad.net/~ubuntu-etherpad
 
1:42 PM
@amith you there?
 
yeah
 
forget the etherpad. how to do this thing??
 
gio
 
:/
give me some sample things.
 
5
Q: How can I change the wallpaper using a Python script?

furtelwartI want to change my wallpaper in Ubuntu 11.10 (with Unity) in a small Python script. I found the possibility to change it via the gconf-editor in /desktop/gnome/background/picture_filename. With python-gconf, I'm able to change the necessary values. Apparently, the gconf string is not read out. ...

 
1:50 PM
ok cool
it's as good as nothing.
i am such a noob in python ;p
 
Woah
now.. where are the docs to reset
 
oh?
 
MAAAAHHHEEESSSHHHHHH
 
04:00 - 14:0014:00 - 21:00

« first day    last day (153 days later) »