Export to GitHub

obkey - issue #6

openbox is not rebooted or forced to load configuration


Posted on Nov 29, 2010 by Happy Camel

What steps will reproduce the problem? 1. Press "Save" in obkeys 2. 3.

What is the expected output? What do you see instead? It should reconfigure openbox, but it does not

What version of the product are you using? On what operating system? Ubuntu + lxde

Please provide any additional information below. I think the problem is in obkey_classes.py last function should be (I think) just: os.system( "openbox --reconfigure" )

Comment #1

Posted on Nov 29, 2010 by Quick Bear

It sends a singal to openbox. Works on my setup. I took a snippet for that from obmenu.

See the last function in a file obkey_classes.py. If you can investigate why it doesn't work for you, please do it.

Comment #2

Posted on Nov 30, 2010 by Happy Camel

Okay, found the answer:

==

l2 = [l for l in lines if "openbox" in l] l2 ['1000 1540 0.0 0.2 15120 8756 ? S Nov18 0:52 openbox --confi'] ob '/usr/bin/openbox' l2 = [l for l in lines if ob in l] l2

[]

As you can see, your hack is not going to work, at least in a system using ubuntu with lxde. Probably slightly different configurations.

I took a snippet for that from obmenu.

Then I guess obmenu would be equally flawed in my system (though I haven't used it).

Anyway, this is an unnecessarily complex. Just do:

os.system("openbox --reconfigure")

And that's all. I've changed it in my local copy, and it works perfectly now.

Comment #3

Posted on Nov 30, 2010 by Quick Bear

Sounds reasonable, applied in commit f27fe38.

Status: Fixed

Labels:
Type-Defect Priority-Medium