xpra icon
Bug tracker and wiki

Ticket #864: debug-launcher-crash.patch

File debug-launcher-crash.patch, 1.4 KB (added by Antoine Martin, 4 years ago)

adds some debug logging

  • xpra/client/gtk_base/client_launcher.py

     
    4646from xpra.platform.paths import get_icon_dir
    4747from xpra.log import Logger, enable_debug_for
    4848log = Logger("launcher")
     49log.enable_debug()
    4950
    5051
    5152#what we save in the config file:
     
    396397        if not self.encoding_combo:
    397398            return ""
    398399        index = get_active_item_index(self.encoding_combo)
     400        log("get_selected_encoding(%s) index=%s", args, index)
    399401        return self.encoding_combo.get_menu().index_to_encoding.get(index)
    400402
    401403    def encoding_changed(self, *args):
     404        log("encoding_changed(%s)", args)
    402405        encoding = self.get_selected_encoding()
    403406        log("encoding_changed(%s) encoding=%s", args, encoding)
    404407        uses_quality_option = encoding in ["jpeg", "webp", "h264"]
     408        log("encoding_changed(%s) uses_quality_option=%s", args, uses_quality_option)
    405409        if uses_quality_option:
    406410            self.quality_combo.show()
    407411            self.quality_label.show()
     
    408412        else:
    409413            self.quality_combo.hide()
    410414            self.quality_label.hide()
     415        log("encoding_changed(%s) done", args)
    411416
    412417    def reset_errors(self):
    413418        self.set_sensitive(True)