summaryrefslogtreecommitdiff
path: root/xgps
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2017-07-27 13:55:39 -0700
committerGary E. Miller <gem@rellim.com>2017-07-27 13:55:39 -0700
commitff0f84a7ab1d9d84bc3227917bbba4ed3929a55c (patch)
tree077a12771d1526f430ea2fe4302795a7ca12523f /xgps
parentd72a5217f267cf192b724de88b458d6f9c0b9bea (diff)
downloadgpsd-ff0f84a7ab1d9d84bc3227917bbba4ed3929a55c.tar.gz
xgps: tweak window title
Diffstat (limited to 'xgps')
-rwxr-xr-xxgps6
1 files changed, 4 insertions, 2 deletions
diff --git a/xgps b/xgps
index 82b26b2d..80df4e4e 100755
--- a/xgps
+++ b/xgps
@@ -502,7 +502,9 @@ class Base(object):
self.window = Gtk.Window(Gtk.WindowType.TOPLEVEL)
if not self.window.get_display():
raise Exception("Can't open display")
- self.window.set_title(" ".join(["xgps"] + target))
+ if len(target):
+ target = " " + target
+ self.window.set_title("xgps" + target)
self.window.connect("delete_event", self.delete_event)
self.window.set_resizable(False)
@@ -949,7 +951,7 @@ if __name__ == "__main__":
port = args[1]
if len(args) >= 3:
device = args[2]
- target = arguments[0:]
+ target = ":".join(arguments[0:])
else:
target = ""