summaryrefslogtreecommitdiff
path: root/src/main.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-11-11 12:28:09 +0100
committerJörg Frings-Fürst <debian@jff.email>2024-11-11 12:28:09 +0100
commitcb001bb8056869f98e9a62248bdd509a69d08faf (patch)
treeec5e83ac39e4e5cec0ab9494da2d0edaafe72d89 /src/main.vala
parent1bbf886bafc680c56ddd5e27ddd803b4e03685df (diff)
parent5b7b3b1dfd5ce7c275881098310667b09562ad27 (diff)
Update upstream source from tag 'upstream/0.32.10'
Update to upstream version '0.32.10' with Debian dir 4a4ccaeec66d543745486a1cf408bbaa58c6e02f
Diffstat (limited to 'src/main.vala')
-rw-r--r--src/main.vala9
1 files changed, 6 insertions, 3 deletions
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