Skip to content

Commit

Permalink
Cleanups for some debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
asafge committed Jul 12, 2013
1 parent 14bce56 commit 6c08410
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
6 changes: 0 additions & 6 deletions connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def rdp_connect(address, user="", domain="", password="", dualmon=False):
cmdline.extend(["/multimon"])

cmdline.extend(["/v:%s" %(address)])
#cmdline.append(address)

proc = subprocess.Popen(cmdline)
print cmdline
Expand All @@ -53,9 +52,4 @@ def rdp_connect(address, user="", domain="", password="", dualmon=False):
logging.error("Process had died too quickly, rc=%d", rc)
raise ConnectionFailedError()

#straceline = "strace -tt -f -p {0} &> {1}".format(proc.pid, "{0}/{1}".format(folder, datestring))

#logging.debug(straceline)
#os.system(straceline)

return proc.pid
8 changes: 2 additions & 6 deletions rdc_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,8 @@ def create_buttons(self):
buttons["save"] = gtk.Button(u"← _Save")
buttons["edit"] = gtk.Button(u"→ _Edit")
buttons["new"] = gtk.Button(stock=gtk.STOCK_NEW)
buttons["delete"] = gtk.Button(stock=gtk.STOCK_DELETE)
#Exit Button patch for sound
buttons["delete"] = gtk.Button(stock=gtk.STOCK_DELETE)
buttons["exit"] = gtk.Button(u"Exit")

return buttons


Expand Down Expand Up @@ -183,7 +181,7 @@ def create_containers(self):

# rightpane
containers["rightpane"] = gtk.HBox(False, 10)
containers["main_box"].pack2(containers["rightpane"], resize=False, shrink=True)
containers["main_box"].pack2(containers["rightpane"], resize=False, shrink=True)

# rightpane_align
containers["rightpane_align"] = gtk.Alignment()
Expand Down Expand Up @@ -225,7 +223,6 @@ def create_buttonbox(self):
buttonbox.add(self.buttons["save"])
buttonbox.add(self.buttons["new"])
buttonbox.add(self.buttons["delete"])
#Exit button
buttonbox.add(self.buttons["exit"])
return buttonbox

Expand Down Expand Up @@ -323,7 +320,6 @@ def create_treeview(self, liststore):
for field in model.ENTRY_FIELDS:
desc = model.FIELD_DESCRIPTION[field]
cells.append(gtk.CellRendererText())
# cells[count].connect('edited', self.cell_edited, (liststore, count))
treeview_columns.append(gtk.TreeViewColumn(desc, cells[count], text=count))
treeview_columns[count].set_resizable(True)
treeview_columns[count].set_sort_indicator(True)
Expand Down
1 change: 0 additions & 1 deletion settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
RDP_PORT = 3389
CONNECTION_TEST_TIMEOUT = 2 # Seconds of timeout when testing if target is accessible. Can also be a fraction

# XFreeRDP (Geva edit: XFREERDP_STATIC_PARAMS also contained "--sec" + "rdp", had to remove to support dualmon)
# example: xfreerdp -a 32 -o --gdi sw --composition --sec rdp
# example dualmon: xfreerdp /multimon /f /u:user /p:password /v:servername
XFREERDP_BIN = "xfreerdp"
Expand Down

0 comments on commit 6c08410

Please sign in to comment.