summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2016-11-28 01:43:25 -0500
committerlukefromdc <[email protected]>2016-11-28 01:43:25 -0500
commitddc5a987ce8bee804a83a72049217a6fcc5cf0c4 (patch)
tree4b93fe6568e37e811ca05c55af82f72ae3780cb8
parent7e5ab5a468c3b636fa05b3d5f62f865d7ccd113e (diff)
downloadcaja-ddc5a987ce8bee804a83a72049217a6fcc5cf0c4.tar.bz2
caja-ddc5a987ce8bee804a83a72049217a6fcc5cf0c4.tar.xz
Fix restart loop when started without icons on the desktop
Fix for https://github.com/mate-desktop/caja/issues/686 Also checked in XFCE to make sure unkillable caja process did not return Note that the combination of no icons on the desktop with exit on last window will still trigger a restart loop just as it always has
-rw-r--r--src/caja-application.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/caja-application.c b/src/caja-application.c
index 49958d39..bf8404d9 100644
--- a/src/caja-application.c
+++ b/src/caja-application.c
@@ -2399,9 +2399,14 @@ caja_application_startup (GApplication *app)
{
exit_with_last_window = g_settings_get_boolean (caja_preferences,
CAJA_PREFERENCES_EXIT_WITH_LAST_WINDOW);
+ /*Keep this inside the running as mate/not as root block */
+ /*So other desktop don't get unkillable caja instances holding open */
+ instance = g_application_get_default ();
+ if (exit_with_last_window == FALSE){
+ g_application_hold (G_APPLICATION (instance));
+ }
}
- instance = g_application_get_default ();
}
static void