After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 329680 - need to delete the private profile on exit
need to delete the private profile on exit
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: Profile
git master
Other Linux
: Normal enhancement
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks: 145386
 
 
Reported: 2006-02-02 23:04 UTC by Christian Persch
Modified: 2007-09-28 21:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
There (1.38 KB, patch)
2007-09-27 07:27 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
Implements the function and its doc string (1.91 KB, patch)
2007-09-28 05:07 UTC, Diego Escalante Urrelo (not reading bugmail)
committed Details | Review

Description Christian Persch 2006-02-02 23:04:49 UTC
from ephy_file_helpers_shutdown().
Comment 1 Diego Escalante Urrelo (not reading bugmail) 2006-12-26 09:04:11 UTC
Does the callers of those functions check if -p is used with --profile ?

In that case the profile dir shouldn't be deleted because you might be using a modified dir or an alternative epiphany profile.

Sounds easy to do, can you give me some details about it? :)
Comment 2 Christian Persch 2006-12-26 14:46:29 UTC
Needs to implement ephy_file_delete_directory().

And I'd say we should only delete the profile when using -p without --profile.
Comment 3 Diego Escalante Urrelo (not reading bugmail) 2007-08-01 15:26:11 UTC
Nautilus does this:

		gnome_vfs_async_xfer (&transfer_info->handle, trash_dir_list, NULL,
		      		      GNOME_VFS_XFER_EMPTY_DIRECTORIES,
		      		      GNOME_VFS_XFER_ERROR_MODE_QUERY, 
		      		      GNOME_VFS_XFER_OVERWRITE_MODE_REPLACE,
				      GNOME_VFS_PRIORITY_DEFAULT,
		      		      update_transfer_callback, transfer_info,
		      		      sync_transfer_callback, NULL);
Comment 4 Diego Escalante Urrelo (not reading bugmail) 2007-08-01 18:00:54 UTC
Include this on your patch potential contributor:

Index: src/ephy-main.c
===================================================================
--- src/ephy-main.c     (revision 7227)
+++ src/ephy-main.c     (working copy)
@@ -675,7 +675,7 @@ main (int argc,
 
        if (!ephy_file_helpers_init (profile_directory,
                                     private_instance,
-                                    keep_temp_directory,
+                                    keep_temp_directory || profile_directory,
                                     &error))
        {
                _ephy_dbus_release ();
Comment 5 Diego Escalante Urrelo (not reading bugmail) 2007-09-27 07:27:45 UTC
Created attachment 96275 [details] [review]
There

Should be enough I think.
Comment 6 Christian Persch 2007-09-27 12:27:30 UTC
I think gnome_vfs_xfer_delete_list deletes the directory itself too; so the call to rmdir() in ephy_file_helpers_shutdown could be removed too, right?
Comment 7 Diego Escalante Urrelo (not reading bugmail) 2007-09-28 05:07:52 UTC
Created attachment 96318 [details] [review]
Implements the function and its doc string

You are right about the rmdir, I also added a doc string I hope it's correct.
Btw, I found this while looking for a doc string example...

src/ephy-tab.c:
/**
 * ephy_tab_get_visibility:
 * @tab: an #EphyTab
 *
 * FIXME: Nobody really knows what this does. Someone must investigate.
 *
 * Return value; %TRUE if @tab's "visibility" property is set
 **/

WTF? :)
Comment 8 Diego Escalante Urrelo (not reading bugmail) 2007-09-28 21:46:46 UTC
------------------------------------------------------------------------
r7506 | diegoe | 2007-09-28 16:45:48 -0500 (Fri, 28 Sep 2007) | 6 lines

Implement ephy_file_delete_directory in lib/ephy-file-helpers.c so private
instances of Epiphany remove the profile dir on exit.
Note that the profile dir won't be deleted if it's a custom path.
Fixes bug #329680.