Community
Participate
Working Groups
Since a few days my temp folder is swamped by countless folders SWT-GDBusServer-<username>-<alnum>/ SWT-WebExtensionGDBusServer-<username>-<alnum>/ Only today (I started Eclipse in the morning) there have been created 103 of these -- and they're not removed once Eclipse is shut down. Is that really necessary? - these need to go into one common sub-folder instead of filling up the temp folder - SWT/Eclipse needs to clean up after itself
Yep. We should fix that.
Side effect of bug 540060.
Code in org.eclipse.swt.browser.WebkitGDBus.construct_server_address() constructs some pseudo-random directory name, but does not attempts to delete it on shutdown. See also webkitgtk_extension.c :: construct_server_address counterpart on the C side, that uses https://developer.gnome.org/glib/stable/glib-File-Utilities.html#g-dir-make-tmp. I imagine we need to cleanup in org.eclipse.swt.browser.WebKit.WebKitExtension on shutdown. The bad thing about it: I don't see where we can get that *two different* random paths, which we could use to cleanup on shutdown, and if we *can* do that without crashing started native process that might still use this directory. One possibility would be to not use g-dir-make-tmp, but use plain Java to create one temp directory and pass this to native code, and on shutdown delete the root dir with all the content.
I don't have time for this one so move away from 4.16.
Any chance to at least create all those folders in a common subfolder in tmp? Is there maybe a variable to be set?
New Gerrit change created: https://git.eclipse.org/r/163641
Gerrit change https://git.eclipse.org/r/163641 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=19153b908d6d4cedcbd59824686717502cfde4f7
Verified for I20200609-0150
Thanks Paul!