Navigation Menu

Skip to content

Commit

Permalink
Config is not used in qsh and Client
Browse files Browse the repository at this point in the history
Closes #252
  • Loading branch information
ei-grad authored and tych0 committed Dec 26, 2012
1 parent c99f89f commit bc123da
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 26 deletions.
34 changes: 10 additions & 24 deletions bin/qsh
Expand Up @@ -20,38 +20,24 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

import os, os.path
from libqtile import confreader, sh, command
from libqtile import sh, command

def main():
from optparse import OptionParser, OptionGroup

from optparse import OptionParser

parser = OptionParser(version="%prog 0.2")
parser.add_option(
"-c", "--config",
action="store", type="string",
default=None,
dest="configfile",
help='Use specified configuration file.'
)
parser.add_option(
"-s", "--socket",
action="store", type="string",
default=None,
dest="socket",
help='Use specified comms socket.'
)
parser.add_option("-s", "--socket",
action="store", type="string",
default=None,
dest="socket",
help='Use specified socket to connect to qtile.')
options, args = parser.parse_args()

try:
c = confreader.File(options.configfile)
except confreader.ConfigError, v:
parser.error(v.message)
client = command.Client(options.socket, c)
client = command.Client(options.socket)
qsh = sh.QSh(client)
qsh.loop()


if __name__ == "__main__":
main()


2 changes: 1 addition & 1 deletion libqtile/command.py
Expand Up @@ -233,7 +233,7 @@ class Client(_CommandRoot):
Exposes a command tree used to communicate with a running instance of
Qtile.
"""
def __init__(self, fname=None, conf=None):
def __init__(self, fname=None):
if not fname:
fname = find_sockfile()
self.client = ipc.Client(fname)
Expand Down
2 changes: 1 addition & 1 deletion test/utils.py
Expand Up @@ -149,7 +149,7 @@ def startQtile(self, config):
sys.exit(0)
else:
self.qtilepid = pid
self.c = libqtile.command.Client(self.fname, config)
self.c = libqtile.command.Client(self.fname)
self._waitForQtile()

def stopQtile(self):
Expand Down

0 comments on commit bc123da

Please sign in to comment.