last day (154 days later) » 

12:09
hi
Hi
How is this room superuser
@AmithKK not sure
i think coz my chat profile is SU
14 Homo Sapien English
Bah.
You don't freak out.
lol
so yeah
12:11
yeah
Add me as an admin :D
:P
let's do it
so what do we do here?
we are going to add a new feature to Unity.
12:12
cool.
anyone thought of what the feature will be?
actually, it was already there. we are going to readd it
I have some time to spare today. lets put it to use.
the resetting the config
when was it removed?
68
Q: How do I reset my Unity configuration?

Jorge CastroI've been messing around with Unity and broke something, how do I "start over"?

12:13
unity --reset you mean, right?
it was removed in quantal
Yeah
@Mahesh yeah
It's time
And the power goes down
Screw this
you are going off @AmithKK?
12:13
wait a few minutes
:/
hmm...
sigh
you are on 12.10 @Mahesh?
nopsey.
:(
will you?
12:15
I can vm it in no time.
we need to add a groundbreaking feature and you need to be on this
flattered, should i be? :D :P
okay. will zsync it now.
first of all, we need to figure out to reset this darn settings
@Mahesh come over faster
you want me to do a bare-metal or vm works just fine?
up to you
does 12.10 work in vm?
12:18
it should.
try then
i was told it is sluggish like crap
waiting....
zsync to finish
zsync
12:22
I have low bandwidth quota buddy. so I save everything i can
Oh noes...
it makes no difference. it saved just 100 mb.
shucks
12:24
I guess I'm near my quota limit..
:(
/hate this
/me too
what do we do now?
Hello
So
12:28
done downloading?
@jokerdino What?
@jokerdino What?
what???
I have a copy of TLCL.
why do we need that?
12:30
oops
68
Q: How do I reset my Unity configuration?

Jorge CastroI've been messing around with Unity and broke something, how do I "start over"?

omg
i suck so much
yup.
ok
we collaborate on the code?
@Mahesh i am so sorry
@AmithKK yeah \o/
I'll setup etherpad on amithkk.com
ok.
need a private git server?
I'm setting up a private git repo on bitbucket.
12:32
okay
email ids please...
but i can't access git :(
my network..
@jokerdino You can only access port 80, correct?
yeah
let's get the code working.
i can reset it from dconf-editor but not from terminal
ooops
@jokerdino not even on http?
12:39
i can use it!
@Mahesh that yes
okay. same here.
Making Node.js here
wah, who is on 12.10?
not me. :(
@dino should i invite you at the ubuntu address?
12:51
let me look up the source and see what we are trying to do.
we need to reset teh values
i can't do it by gsettings
but i can using dcof
We're resetting the values
wait
dconf has the same things as gconf right?
i dont know
they differ in formats.
dconf, I guess I can.
you make a settings dump, and reuse it.
12:52
@Mahesh Nah
@AmithKK why so?
we need something that anyone can use without a backup
essentially, we'll have to reset the values, right?
so lets provide that sane backup.
wrapped up in a tiny python script that does the magic.
why complicate lives?
12:54
yes but goddamn hippie i can't reset the values
we just need a copy of sane settings to be able to reset.
you mean the default settings?
create a new user account, login once, and do dconf dump / >dconfdump
whatev guys
12:56
dirty way, invoke dconf from python.
better way, contribute to that module.
helloooes!
hi
get starting
 rm ~/.config/dconf/user
Does this work @jokerdino
that also kills other settings
not just unity
okay. to do list.
figure out what keys have to be reset.
this one
13:01
?
gsettings list-relocatable-schemas | grep compiz
org.compiz.session
org.compiz.scaleaddon
org.compiz.core
org.compiz.clone
org.compiz.ring
org.compiz.scale
org.compiz.composite
org.compiz.screenshot
org.compiz.mblur
org.compiz.workarounds
org.compiz.animation
org.compiz.shift
org.compiz.winrules
org.compiz.opengl
org.compiz.water
org.compiz.fade
org.compiz.mousepoll
org.compiz.gnomecompat
org.compiz.grid
org.compiz.shelf
org.compiz.unitydialog
org.compiz.opacify
org.compiz.obs
org.compiz.cube
org.compiz.annotate
> Didrocks told me there's no easy way to do this in 12.10, however he gave me some information to figure it out, the ideal answer will script up something like this: "gsettings list-relocatable-schemas | grep compiz", then note down the relocatable schemas then gsettings reset-recursively <each schema from the list above>:/org/compiz/profiles/unity Note that the dconf reset command isn't enough.
starring for easy reference.
Ok, I have code for this
13:02
sure?
wait..
gsettings operates on gconf right?
no
only on dconf iirc
#!/usr/bin/python
import subprocess
out, err = subprocess.Popen('gsettings list-relocatable-schemas | grep compiz',shell=True, stdout=subprocess.PIPE).communicate()
out = out.splitlines()
for x in out:
	n="gsettings reset-recursively "+x+":/org/compiz/profiles/unity/"
	subprocess.Popen(n,shell=True)
it doesn't work
Yeah
that's the problem
13:05
gsettings reset-recursively org.compiz.unityshell:/org/compiz/profiles/unity/
the command does nothing
whoa.. wait.
are we resetting things the right way?
no idea
so gsettings is the higher level interface.
gconf/dconf are the low level storage backends.
i guess so
13:08
neat
okay, now lets see why reset doesn't work.
good idea
i can reset it using dconf but not gsettings
the problem is, we need to supply a schema.
it doesn't have a schema
it must have a base schema, right?
13:11
no schema, nada
end of story, unless we figure out how to use gsettings without using a schema.
or we create those? :D
patch unity with schemaas
wait...
they are schemas.
now whats the difference between non relocatable ones and relocatable ones?
one can move and the other cant?
Ok, I'll be back in 15 minutes
13:14
okay, try amith's python script omitting the path.
omit what?
#!/usr/bin/python
import subprocess
out, err = subprocess.Popen('gsettings list-relocatable-schemas | grep compiz',shell=True, stdout=subprocess.PIPE).communicate()
out = out.splitlines()
for x in out:
	n="gsettings reset-recursively "+x
	subprocess.Popen(n,shell=True)
buggy
buggy as in?
./python.py
./python.py: line 5: syntax error near unexpected token `('
./python.py: line 5: `out, err = subprocess.Popen('gsettings list-relocatable-schemas | grep compiz',shell=True, stdout=subprocess.PIPE).communicate()'
extra bracket
13:20
where on earth?
oh noes...
must be formatting prob. recheck it.
nope
i cant figure
amith's copy runs, right?
never miid
org.compiz.core' is relocatable (path must be specified)
Schema 'org.compiz.scaleaddon' is relocatable (path must be specified)
Schema 'org.compiz.ring' is relocatable (path must be specified)
that. is. great.
\o/
I'm back
13:23
wb
okay, dconf doesn't care about schemas.
and gsettings does.
anyone figured out if dconf even recognises scemas?
wanna join ubuntu-unity?
next step: figure out who tells gsettings about schemas.
@jokerdino ?
13:27
in irc
#!/usr/bin/python
import subprocess
out, err = subprocess.Popen('gsettings list-relocatable-schemas | grep compiz',shell=True, stdout=subprocess.PIPE).communicate()
out = out.splitlines()
for x in out:
	n="gsettings reset-recursively "+x+" :/org/compiz/profiles/unity/"
	subprocess.Popen(n,shell=True)
Hey, @jokerdino try that
I'll have to use webchat. okay, coming in..
nope
@amith no workie
Usage:
gsettings [--schemadir SCHEMADIR] reset-recursively SCHEMA[:PATH]
hmm
ok
so, its not spacing
13:29
nope.
its the scema and paths.
anyone knows how gsettings recognises schemas?
me nada
YAY!!!
found it.
so, we list schemas as we did,
then list the keys in those schemas,
and then run a reset on all keys.
shall we try this?
13:32
sure. @amith get to coding
@AmithKK code it up, buddy.
lolz.
Found what?
ok, we have key listing too?
gsettings list-keys SCHEMA [:PATH]
This is easy
no space i guess. check it.
code pwease?
Wait a second
does the += operator work in python?
13:37
yup.
So, it works on lists too?
yup, it should.
just checked. it works.
good sirs
Wow
this could take work
13:42
gsettings reset actually needs us to specify the schema,path and key
we need something like a two dimensional array
which means?
like
we are dead
why are we dead?
[key1:schema1,key2:schema2]
13:43
go ahead with a list of lists.
or a dictionary of lists.
wait.. I can do that?
Wow
yes.
Yo dawg
XD
arbitrary nesting possible.
13:44
/me going for dinner. should be back soon.
@Mahesh Example code of lists of lists please
or wait
we can have two parallel lists
@amith, once you get this done, i'll help you pull it into unity
This is like inception
#!/usr/bin/python
import subprocess
out, err = subprocess.Popen('gsettings list-relocatable-schemas | grep compiz',shell=True, stdout=subprocess.PIPE).communicate()
out = out.splitlines()
out2,err2,schemalist=[],[],[]
for x in out:
	n="gsettings list keys "+x+":/org/compiz/profiles/unity/"
	out2, err2 += subprocess.Popen(n,shell=True, stdout=subprocess.PIPE).communicate()
	schemalist.append(x)

out2=out2.splitlines()
print out2
print schemalist
@jokerdino output please
13:55
File "./new.py", line 8
out2, err2 += subprocess.Popen(n,shell=True, stdout=subprocess.PIPE).communicate()
SyntaxError: illegal expression for augmented assignment
Try taking out the comma and err2
Commands:
  help                      Show this information
  list-schemas              List installed schemas
  list-relocatable-schemas  List relocatable schemas
  list-keys                 List keys in a schema
  list-children             List children of a schema
  list-recursively          List keys and values, recursively
  range                     Queries the range of a key
  get                       Get the value of a key
  set                       Set the value of a key
  reset                     Reset the value of a key
#!/usr/bin/python
import subprocess
out, err = subprocess.Popen('gsettings list-relocatable-schemas | grep compiz',shell=True, stdout=subprocess.PIPE).communicate()
out = out.splitlines()
schemalist=[]
out2,err2="",""
for x in out:
	n="gsettings list keys "+x+":/org/compiz/profiles/unity/"
	out2, err2 += subprocess.Popen(n,shell=True, stdout=subprocess.PIPE).communicate()
	schemalist.append(x)

out2=out2.splitlines()
print out2
print schemalist
Now try it out
File "./new.py", line 9
out2, err2 += subprocess.Popen(n,shell=True, stdout=subprocess.PIPE).communicate()
SyntaxError: illegal expression for augmented assignment

  last day (154 days later) »