From 5b7b3b1dfd5ce7c275881098310667b09562ad27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 11 Nov 2024 12:27:53 +0100 Subject: New upstream version 0.32.10 --- src/main.vala | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/main.vala') diff --git a/src/main.vala b/src/main.vala index 25a0690..e619178 100644 --- a/src/main.vala +++ b/src/main.vala @@ -420,6 +420,8 @@ const OptionEntry[] entries = { } void main(string[] args) { + Application.timezone = new TimeZone.local(); + // Call AppDirs init *before* calling Gtk.init_with_args, as it will strip the // exec file from the array AppDirs.init(args[0]); @@ -563,9 +565,9 @@ void main(string[] args) { message("Shotwell %s %s", is_string_empty(filename) ? Resources.APP_LIBRARY_ROLE : Resources.APP_DIRECT_ROLE, Resources.APP_VERSION); - debug ("Shotwell is running in timezone %s", new - DateTime.now_local().get_timezone_abbreviation ()); - + + debug ("Shotwell is running in timezone %s", Application.timezone.get_identifier()); + message ("Shotwell is runing inside %s", AppDirs.get_runtime().to_string()); // Have a filename here? If so, configure ourselves for direct // mode, otherwise, default to library mode. Application.init(!is_string_empty(filename)); @@ -591,6 +593,7 @@ void main(string[] args) { // set up GLib environment GLib.Environment.set_application_name(Resources.APP_TITLE); + GLib.Environment.set_prgname("org.gnome.Shotwell"); // in both the case of running as the library or an editor, Resources is always // initialized -- cgit v1.2.3