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

gb.gtk somehow just erased ~/.cache and ~/.local/share ! (BIG BUG)


Yep that's right, gambas just wiped out my ~/cache and
~/.local/sharefolders :-\

Simply running a gbs3 command that checks for gui availability

Like this one but using gtk...

G="gtk3"; echo -e "Use \"gb.gui\"\nIf Args[1] = Env[\"GB_GUI\"] Then Quit
0\nQuit 1\n" | env GB_GUI="gb.$G" gbs3 - gb.$G 2>/dev/null; echo $?

That works fine, it returns 0 for no error
If i change G="gtk3" to G="gtk4" then that also works fine, it returns 1 as
no gtk4.

BUT THIS...
G="gtk"

If i do that my ~/cache and ~/.local/share folders get wiped clean. :-\
You heard me , completely erased.

I've lost a ton of settings.
and spent ages thinking it is was a fault in my GambasProcWatch program
that i have eventually tracked down to it actually happening because of a
line in a text sctript that's using gbs3 to check if gtk is availavle.

Simply something like this...
G="gtk"; echo -e "Use \"gb.gui\"\nIf Args[1] = Env[\"GB_GUI\"] Then Quit
0\nQuit 1\n" | env GB_GUI="gb.$G" gbs3 - gb.$G 2>/dev/null; echo $?

(Do not try that at home kids unless you have backups)

It works without problems trying qt4/qt5/qt6/qt7/gtk3
but with gtk has a MASSIVE PROBLEM. !!

I'm going to chill out for a while

Follow-Ups:
Re: gb.gtk somehow just erased ~/.cache and ~/.local/share ! (BIG BUG)Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>