summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/astal.vala17
1 files changed, 13 insertions, 4 deletions
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<Gtk.Window> 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 {