[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gambas residual gumph


On Fri, 8 Nov 2024 at 21:06, Bruce Steers <bsteers4@xxxxxxxxx> wrote:

>
>
> On Fri, 8 Nov 2024 at 20:09, Benoît Minisini <
> benoit.minisini@xxxxxxxxxxxxxxxx> wrote:
>
>> Le 08/11/2024 à 17:40, Bruce Steers a écrit :
>> >
>> > oops sorry that first link is a depreciated method :-\
>> > these ones perhaps.. (looks like WebsiteDataManager is of interest here)
>> > method: https://webkitgtk.org/reference/webkit2gtk/stable/
>> > method.WebsiteDataManager.get_base_cache_directory.html <https://
>> > webkitgtk.org/reference/webkit2gtk/stable/
>> > method.WebsiteDataManager.get_base_cache_directory.html>
>> >
>> > property: https://webkitgtk.org/reference/webkit2gtk/stable/
>> > property.WebsiteDataManager.base-cache-directory.html <https://
>> > webkitgtk.org/reference/webkit2gtk/stable/
>> > property.WebsiteDataManager.base-cache-directory.html>
>> >
>> > Sorry my friend I am way out of my depth here and should probably just
>> > shut up and leave it in your capable hands now :)
>> > I hope the links help
>> >
>> > Respects
>> > BruceS
>> >
>>
>> OK. As I can't make WebkitGTK+ store its caches where I want, I let him
>> do what he wants. And on program exit, I remove all possible temporary
>> directories having the name of the application desktop file (the
>> "org.gambas.<pid>" folders...) in "~/.local/share" and "~/.cache", or
>> the corresponding directories as defined by the XDG environment variables.
>>
>> I hope your hard disk will be clean now.
>>
>> Regards,
>>
>> --
>> Benoît Minisini.
>>
>
> Aah great Ben thank you :)
>
> I'm currently writing a new program to monitor and manage any dead folders
> as they appear as i think during development/debugging or a bad program
> exit it's likely some of these folders may get left behind.
>
> But already now with the last commit it's cleaning up better , thanks
> again :)
>
> Much respect
> BruceS
>

So I made a simple utility to manage dead folders i called GambasProcWatch.
It can clean all or selected obsolete folders.
It's WIP at present and probably warrants further development.

It monitors for your applications starting and reports if they close and do
not clean up after.

It's intended use..
Test if any of my programs exit badly and do not clean up after themselves.
https://forum.gambas.one/viewtopic.php?t=1909

Other uses.
clean up all obsolete temp dirs
Kill and then cleanup a hung program

PS. It uses a Timer and Exist() every second to check for removed /proc/
folders as gb.inotify did not seem to work as expected with /proc/ folders
, this i think causes a little more cpu overhead than if it sat idle
waiting for a Watch notification but it is more reliable.

Thank you Benoit for addressing this in the IDE also.
I understand how it's not so easy to manage these folders when a program
crashes or is hard quit.

This program may help.

Respects
BruceS

Attachment: GPW.jpg
Description: JPEG image


References:
gambas residual gumphBruce Steers <bsteers4@xxxxxxxxx>
Re: gambas residual gumphBruce Steers <bsteers4@xxxxxxxxx>
Re: gambas residual gumphBruce Steers <bsteers4@xxxxxxxxx>
Re: gambas residual gumphBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: gambas residual gumphBruce Steers <bsteers4@xxxxxxxxx>
Re: gambas residual gumphBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: gambas residual gumphBruce Steers <bsteers4@xxxxxxxxx>
Re: gambas residual gumphBruce Steers <bsteers4@xxxxxxxxx>
Re: gambas residual gumphBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: gambas residual gumphBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: gambas residual gumphBruce Steers <bsteers4@xxxxxxxxx>
Re: gambas residual gumphBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: gambas residual gumphBruce Steers <bsteers4@xxxxxxxxx>
Re: gambas residual gumphBruce Steers <bsteers4@xxxxxxxxx>
Re: gambas residual gumphBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: gambas residual gumphBruce Steers <bsteers4@xxxxxxxxx>