From 57a49504bfc6cdc8d34c5f9f968a12a06149e817 Mon Sep 17 00:00:00 2001 From: Aylur Date: Sun, 26 May 2024 20:16:58 +0200 Subject: fix(astal.vala): instance_name setter --- src/astal.vala | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/astal.vala b/src/astal.vala index e8c3f75..70e42ca 100644 --- a/src/astal.vala +++ b/src/astal.vala @@ -4,7 +4,19 @@ public class Application : Gtk.Application { private SocketService service; private string socket; - public string instance_name { get; construct set; } + public new string application_id { + get { return base.application_id; } + set { base.application_id = value; } + } + + private string _instance_name; + public string instance_name { + get { return _instance_name; } + set { + application_id = "io.Astal." + value; + _instance_name = value; + } + } public List windows { get { return get_windows(); } @@ -121,9 +133,6 @@ public class Application : Gtk.Application { if (instance_name == null) instance_name = "astal"; - if (application_id == null) - application_id = "io.Astal.".concat(instance_name); - shutdown.connect(() => { if (FileUtils.test(socket, GLib.FileTest.EXISTS)){ try { -- cgit v1.2.3