From f338c095068768875a933ff710addbd1e45b96f6 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 6 Nov 2023 08:55:13 -0800 Subject: [PATCH] apprt/gtk: move default id into scope --- src/apprt/gtk/App.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apprt/gtk/App.zig b/src/apprt/gtk/App.zig index fd7441e76..2456d2ada 100644 --- a/src/apprt/gtk/App.zig +++ b/src/apprt/gtk/App.zig @@ -104,7 +104,6 @@ pub fn init(core_app: *CoreApp, opts: Options) !App { // Our app ID determines uniqueness and maps to our desktop file. // We append "-debug" to the ID if we're in debug mode so that we // can develop Ghostty in Ghostty. - const default_id = "com.mitchellh.ghostty"; const app_id: [:0]const u8 = app_id: { if (config.class) |class| { if (isValidAppId(class)) { @@ -114,7 +113,8 @@ pub fn init(core_app: *CoreApp, opts: Options) !App { } } - break :app_id if (builtin.mode == .Debug) "com.mitchellh.ghostty-debug" else default_id; + const default_id = "com.mitchellh.ghostty"; + break :app_id if (builtin.mode == .Debug) default_id ++ "-debug" else default_id; }; // Create our GTK Application which encapsulates our process.