[gnome-photos] main: Allow making the application persistent
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] main: Allow making the application persistent
- Date: Thu, 20 Feb 2014 17:06:24 +0000 (UTC)
commit c1e58628e59f600faf742dda9428774553938e16
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Feb 20 13:46:55 2014 +0100
main: Allow making the application persistent
... by defining the PHOTOS_PERSIST environment variable. This can be
useful for debugging the search provider.
src/photos-main.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-main.c b/src/photos-main.c
index 61d8b3d..ba30387 100644
--- a/src/photos-main.c
+++ b/src/photos-main.c
@@ -1,6 +1,6 @@
/*
* Photos - access, organize and share your photos on GNOME
- * Copyright © 2012 Red Hat, Inc.
+ * Copyright © 2012, 2014 Red Hat, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -46,6 +46,9 @@ main (gint argc, gchar *argv[])
g_set_prgname (PACKAGE_TARNAME);
app = photos_application_new ();
+ if (g_getenv ("PHOTOS_PERSIST") != NULL)
+ g_application_hold (G_APPLICATION (app));
+
remote_display_mngr = photos_remote_display_manager_dup_singleton ();
exit_status = g_application_run (G_APPLICATION (app), argc, argv);
g_object_unref (remote_display_mngr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]