diff options
author | Aylur <[email protected]> | 2024-08-02 16:32:10 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-08-02 16:32:10 +0200 |
commit | 302536de1503f09edf42ad6d224a368263135f74 (patch) | |
tree | 9840ac5177712889e91bf52a06ecf8763f2fe87f /src | |
parent | a0680e3b88c767da23186648024a5b05c4a2f013 (diff) |
fix: default instance_name
Diffstat (limited to 'src')
-rw-r--r-- | src/astal.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/astal.vala b/src/astal.vala index 6868a7e..80ad047 100644 --- a/src/astal.vala +++ b/src/astal.vala @@ -193,9 +193,6 @@ public class Application : Gtk.Application { } public new void quit() throws DBusError, IOError { - if (instance_name == null) - instance_name = "astal"; - if (service != null) { if (FileUtils.test(socket_path, GLib.FileTest.EXISTS)){ try { @@ -210,6 +207,9 @@ public class Application : Gtk.Application { } construct { + if (instance_name == null) + instance_name = "astal"; + shutdown.connect(() => { try { quit(); } catch(Error err) {} }); Unix.signal_add(1, () => { try { quit(); } catch(Error err) {} }, Priority.HIGH); Unix.signal_add(2, () => { try { quit(); } catch(Error err) {} }, Priority.HIGH); |