mirror of
https://github.com/zoriya/astal.git
synced 2026-06-05 02:49:44 +00:00
fix: default instance_name
This commit is contained in:
@@ -85,7 +85,7 @@ class AstalJS extends Astal.Application {
|
||||
})
|
||||
|
||||
if (!this.acquire_socket())
|
||||
return client(msg => Astal.Application.send_message(this.instance_name, msg)!, ...programArgs)
|
||||
return client(msg => Astal.Application.send_message(this.instanceName, msg)!, ...programArgs)
|
||||
|
||||
if (css)
|
||||
this.apply_css(css, false)
|
||||
|
||||
+3
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user