last day (154 days later) » 

4:00 PM
okay. should I post the script as an answer?
 
@mah new one not worky
 
umm... thats bad.
wait.
try this.
 
@Mahesh I'll give you a deb in a few minutes
 
#!/usr/bin/python
import subprocess
plugins=['core', 'composite', 'opengl', 'decor', 'vpswitch', 'snap', 'mousepoll', 'resize', 'place', 'move', 'wall', 'grid', 'session', 'animation', 'fade', 'unitymtgrabhandles', 'workarounds', 'scale', 'expo', 'ezoom', 'unityshell']
for plugin in plugins:
    schema='org.compiz.'+plugin
    path="/org/compiz/profiles/unity/plugins/"+plugin+"/"
    resetter="gsettings reset-recursively "+schema+":"+path+"/"
    out,err=subprocess.Popen(resetter,shell=True, stdout=subprocess.PIPE).communicate()
 
hurry
faile
fail
 
4:01 PM
this. is. bad.
 
ath must not contain two adjacent slashes (//)
Path must not contain two adjacent slashes (//)
 
umm... wait what?
oops. my bad.
then thats the previous one.
#!/usr/bin/python
import subprocess
plugins=['core', 'composite', 'opengl', 'decor', 'vpswitch', 'snap', 'mousepoll', 'resize', 'place', 'move', 'wall', 'grid', 'session', 'animation', 'fade', 'unitymtgrabhandles', 'workarounds', 'scale', 'expo', 'ezoom', 'unityshell']
for plugin in plugins:
    schema='org.compiz.'+plugin
    path="/org/compiz/profiles/unity/plugins/"+plugin+"/"
    resetter="gsettings reset-recursively "+schema+":"+path
    out,err=subprocess.Popen(resetter,shell=True, stdout=subprocess.PIPE).communicate()
okay. if this doesn't work, the dirty way is all we have.
 
@Mahesh Change Popen with call
 
looks like gsettings reset-recursively is not well
 
you dont need output now
 
4:05 PM
umm.. yup.
 
Wait a second, why are you accepting it as a variable
just run it
 
I was trying something else earlier.
yup, I dont need the output and stuff.
 
subprocess.call(resetter,shell=true)
 
you dont even need the shell option.
 
Yes you do
 
4:07 PM
#!/usr/bin/python
import subprocess
plugins=['core', 'composite', 'opengl', 'decor', 'vpswitch', 'snap', 'mousepoll', 'resize', 'place', 'move', 'wall', 'grid', 'session', 'animation', 'fade', 'unitymtgrabhandles', 'workarounds', 'scale', 'expo', 'ezoom', 'unityshell']
for plugin in plugins:
    schema='org.compiz.'+plugin
    path="/org/compiz/profiles/unity/plugins/"+plugin+"/"
    resetter="gsettings reset-recursively "+schema+":"+path
    subprocess.call(resetter,shell=True)
oops.
 
otherwise that will fail
your not splitting up the command and the arguments
 
yup. I get it.
just checked.
@jokerdino if the above one doesn't work, we'll need to go back to the bad way.
the dirty version:
#!/usr/bin/python
import subprocess
plugins=['core', 'composite', 'opengl', 'decor', 'vpswitch', 'snap', 'mousepoll', 'resize', 'place', 'move', 'wall', 'grid', 'session', 'animation', 'fade', 'unitymtgrabhandles', 'workarounds', 'scale', 'expo', 'ezoom', 'unityshell']
for plugin in plugins:
    schema='org.compiz.'+plugin
    n="gsettings list-keys "+schema+":/org/compiz/profiles/unity/"
    out,err=subprocess.Popen(n,shell=True, stdout=subprocess.PIPE).communicate()
    keys=out.splitlines()
    path="/org/compiz/profiles/unity/plugins/"+plugin+"/"
so, what say @AmithKK ?
 
We need someone to test it
hold on
 
how to test?
 
@penreturn Your on 12.10?
 
4:14 PM
12.04 n 12.10
both
 
now on 12.10?
 
yup
 
@AmithKK shall we try?
 
Just paste the script above to a .py file @penreturn
 
the dirty one or clean one? :3
 
4:17 PM
try the clean one.
we know that the dirty one works.
10 mins ago, by Mahesh
#!/usr/bin/python
import subprocess
plugins=['core', 'composite', 'opengl', 'decor', 'vpswitch', 'snap', 'mousepoll', 'resize', 'place', 'move', 'wall', 'grid', 'session', 'animation', 'fade', 'unitymtgrabhandles', 'workarounds', 'scale', 'expo', 'ezoom', 'unityshell']
for plugin in plugins:
    schema='org.compiz.'+plugin
    path="/org/compiz/profiles/unity/plugins/"+plugin+"/"
    resetter="gsettings reset-recursively "+schema+":"+path
    subprocess.call(resetter,shell=True)
 
then
 
run it
 
python filename.py
does anything happen?
 
how do you setup a local etherpad instance?
 
4:24 PM
nothing
 
how do we know if it worked or not? :|
 
:3
 
@penreturn did you have any fancy customisations like autohiding launcher, or stuff?
 
no
fresh install
 
if you had any, they should be gone.
 
4:26 PM
ohhh
 
ok. then it wont make any difference.
set launcher to autohide for example and try again. it should get reset when you run this.
 
thanks. :D
 
same
 
same as in, no effect?
 
4:36 PM
nothing happen.. i larger my launcher icon, hide launcher
 
okay. can you try the dirty script?
 
orite
 
25 mins ago, by Mahesh
#!/usr/bin/python
import subprocess
plugins=['core', 'composite', 'opengl', 'decor', 'vpswitch', 'snap', 'mousepoll', 'resize', 'place', 'move', 'wall', 'grid', 'session', 'animation', 'fade', 'unitymtgrabhandles', 'workarounds', 'scale', 'expo', 'ezoom', 'unityshell']
for plugin in plugins:
    schema='org.compiz.'+plugin
    n="gsettings list-keys "+schema+":/org/compiz/profiles/unity/"
    out,err=subprocess.Popen(n,shell=True, stdout=subprocess.PIPE).communicate()
    keys=out.splitlines()
    path="/org/compiz/profiles/unity/plugins/"+plugin+"/"
click to get the full script.
its showing just a part.
 
ohh do i need to logout and login back?
 
umm... you dont need to, but try it just in case...
 
4:40 PM
You need to restart unity
 
okey both works
i need to logout
both script change my icon size back to normal n launcher not in autohide mode
 
@Mahesh Add setsid unity to it
 
YAY!!!! @AmithKK
@AmithKK where?
 
@Mahesh After the for loop
 
umm.. feel free to make the change.
actually, i dont get what you are trying to say. :P
 
4:43 PM
lol
 
dirty one hehhehee
 
@AmithKK whats the problem?
 
@Mahesh How is the better version working
 
wait what? i copied the wrong one. :P
updated it.
why do we want to do that?
 
4:47 PM
@Mahesh To restart unity
 
better one load fast
dirty takes time
 
umm.. does that reload unity??
@penreturn thats the reason i put those names. :P
 
@Mahesh +1 for better one
 
joined
 
oh great! setsid does the trick.
Here is the script : amithkk.com:9001/p/test.py
 
4:51 PM
i was thinking about this same solution (no experience in python though)
 
We're letting @Mahesh have the bounty
Again, good work @Mahesh
 
too bad we cant have split bounties.
 
No problem.
 
ahahhahaa
 
@Mahesh You can
you just need mods :P
 
4:52 PM
okay, the three of us will take a split bounty if thats possible.
me , @AmithKK and @jokerdino
 
@castrojo We got a python app working for the unity-reset thing. Please ping me for testing
Now to add it to unity's code
shall we do it now @Mahesh
 
nice brother!
 
yup, lets go ahead.
 
@Mahesh #ubuntu-unity in freenode
 
I'm already in.
 
4:58 PM
nobody there :D
 
:P expected
 
 
2 hours later…
6:42 PM
Good Night
 
 
5 hours later…
11:20 PM
@mahesh, actually the clean code worked. I just didn't replace the unity session.
 

  last day (154 days later) »