Project

General

Profile

Feature #4341 » brasero-04-tmpdir.patch

Ken Mays, 2013-11-20 08:25 PM

View differences:

libbrasero-burn/brasero-session.c
1190 1190

  
1191 1191
	priv = BRASERO_BURN_SESSION_PRIVATE (self);
1192 1192

  
1193
	if (!g_strcmp0 (priv->tmpdir, path))
1193
	if (g_strcmp0 (priv->tmpdir, path) == 0)
1194 1194
		return BRASERO_BURN_OK;
1195 1195

  
1196 1196
	if (priv->tmpdir)
......
1199 1199
	if (path)
1200 1200
		priv->tmpdir = g_strdup (path);
1201 1201
	else
1202
		priv->tmpdir = NULL;
1202
		priv->tmpdir = g_get_tmp_dir();
1203 1203

  
1204 1204
	client = gconf_client_get_default ();
1205 1205
	gconf_client_set_string (client, BRASERO_TEMPORARY_DIRECTORY_KEY, priv->tmpdir, NULL);
......
2491 2491

  
2492 2492
	client = gconf_client_get_default ();
2493 2493
	priv->tmpdir = gconf_client_get_string (client, BRASERO_TEMPORARY_DIRECTORY_KEY, NULL);
2494
	if (priv->tmpdir == NULL)
2495
		priv->tmpdir = g_get_tmp_dir();
2494 2496
	g_object_unref (client);
2495 2497
}
2496 2498

  
(5-5/6)