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

Re: gambas residual gumph


What's your view Ben?

is this a problem of the toolkits that should be handled upstream or should
the interpreter be removing these folders?

Should we "expect" residual garbage to be left on our disks if using Quit
and/or testing/debugging and handle it ourselves as I have done?

gambas does seem a little , er , messy , in not cleaning up after itself.

Do you have a surprisingly large amount of dead gambas folders on your
system too?  (try my script out)
Respects
BruceS



On Thu, 7 Nov 2024 at 11:42, Bruce Steers <bsteers4@xxxxxxxxx> wrote:

>
> On Wed, 6 Nov 2024 at 12:47, Bruce Steers <bsteers4@xxxxxxxxx> wrote:
>
>>
>> I just found and deleted over 800 obsolete org.gambas.* folders in
>> $HOME/.cache/
>>
>> Just saying.
>>
>> And what's in /home/bonus/.local/share/gambas3/wiki~  ?
>> is it old backup data that can just be deleted?
>>
>> Respects
>> BruceS
>>
>
> I have added an option in the IDE to remove all the dead folders when
> gambas starts. i have now also added ~/.cache to the list
>
> But i also made a quick gbs script for everyone.. (attached)
>
> it checks for residual gambas folders in
> /tmp/gambas.1000
> /run/user/1000/gambas
> $HOME/.local.share
> $HOME/.cache
>
> checks if the folder number matches a running process ID in /proc/
>
> Lists all orphaned folders that no longer match a live process and offers
> to clean up if you want..
>
> PS. i think if your programs use Quit to exit you have more chance of
> getting these dead folders as when a program is Quit it does not clean up
> after itself like in a normal clean exit.
>
> Like i said i found over 800 folders in ~/.cache the other day :-\
>
> I'd be curious to know if anyone else finds a shockingly large amount of
> dead folders, just run the attached gb_gumph script in a terminal.
>
> PPS. the temporary folders in /tmp/gambas.1000/ and /run/user/1000/gambas
> don't mean very much as they get destroyed on reboot. If you do find a lot
> of stuff in them it's probably due to program using Quit.
>
> This is my output (after about only 2 hours from my last clean) 41 orphans
> already.
>
> bonus:~$ gb_gumph
> Items with a matching process...
> /tmp/gambas.1000/4131  ok
> /tmp/gambas.1000/2665  ok
> /tmp/gambas.1000/7247  ok
> /tmp/gambas.1000/2664  ok
> /tmp/gambas.1000/7245  ok
> /tmp/gambas.1000/2823  ok
> /run/user/1000/gambas/4131  ok
> /run/user/1000/gambas/2664  ok
>
> Orphaned items...
> ~/.cache/org.gambas.102814
> ~/.cache/org.gambas.100140
> ~/.cache/org.gambas.95099
> ~/.cache/org.gambas.5046
> ~/.cache/org.gambas.90194
> ~/.cache/org.gambas.102376
> ~/.cache/org.gambas.6278
> ~/.cache/org.gambas.91214
> ~/.cache/org.gambas.88770
> ~/.cache/org.gambas.93793
> ~/.cache/org.gambas.93158
> ~/.cache/org.gambas.94453
> ~/.cache/org.gambas.91859
> ~/.cache/org.gambas.92498
> ~/.local/share/org.gambas.17016
> ~/.local/share/org.gambas.102814
> ~/.local/share/org.gambas.100140
> ~/.local/share/org.gambas.22804
> ~/.local/share/org.gambas.6476
> ~/.local/share/org.gambas.16855
> ~/.local/share/org.gambas.7157
> ~/.local/share/org.gambas.13833
> ~/.local/share/org.gambas.5046
> ~/.local/share/org.gambas.17305
> ~/.local/share/org.gambas.102376
> ~/.local/share/org.gambas.7521
> ~/.local/share/org.gambas.7868
> ~/.local/share/org.gambas.6278
> ~/.local/share/org.gambas.8156
> ~/.local/share/org.gambas.11823
> ~/.local/share/org.gambas.17084
> ~/.local/share/org.gambas.6875
> ~/.local/share/org.gambas.6596
> ~/.local/share/org.gambas.31694
> ~/.local/share/org.gambas.6248
> /tmp/gambas.1000/6961
> /tmp/gambas.1000/6571
> /tmp/gambas.1000/6966
> /tmp/gambas.1000/6566
> /run/user/1000/gambas/5046
> /run/user/1000/gambas/6278
>
> Found 14 orphaned items in ~/.cache
> Found 21 orphaned items in ~/.local/share
> Found 4 orphaned items in /tmp/gambas.1000
> Found 2 orphaned items in /run/user/1000/gambas
>
> Found a total of 41 orphaned items...
> Type y to delete them or return to quit.
>
> Respects
> BruceS
>
>
>

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