Commit b14c9265 authored by Marc-André Lureau's avatar Marc-André Lureau

DFeetApp: add --address

This will allow to open D-Feet directly to a given address from the
Signed-off-by: Marc-André Lureau's avatarMarc-André Lureau <>
parent 5e745a2f
......@@ -33,6 +33,8 @@ class DFeetApp(Gtk.Application):
make_option("--version", description=_("Show version number and exit")),
make_option("--address", arg=GLib.OptionArg.STRING, arg_description="ADDRESS",
description=_("Open the specified bus address")),
def do_handle_local_options(self, options):
......@@ -45,6 +47,10 @@ class DFeetApp(Gtk.Application):
# Note that the function in C activate() becomes do_activate() in Python
def do_activate(self):
self._main_win = DFeetWindow(self, self.version, self.data_dir)
if self.options.contains("address"):
address = self.options.lookup_value("address").get_string()
if not self._main_win.connect_to(address):
# Note that the function in C startup() becomes do_startup() in Python
def do_startup(self):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment