Firefox and (roaming) profile management...

16 views
Skip to first unread message

Marco Gaiarin

unread,
May 20, 2024, 11:42:42 AMMay 20
to enter...@mozilla.org

I'm using in windows roaming profiles, and i fight everytime a bit with
mozilla app (FF and TB) that tend to put in 'roaming' (permamnent profile)
things that seems better suited for temporary/cache/local profile.

Example:

1) Crash Reports

2) storage


In 'storage' i see some folders: default, permanent, temporary,
to-be-deleted.

By trial and error i've found that i can safely delete 'default' storage
without too much trouble from users (so, seems to me cached data).
I've some users that have a very big 'default' folder.

There's some way to 'move' this folders in some otehr place? There's some
documentation on folder meaning?

There's some effort on mozilla side to 'sanitize' profile folder structure
precisely dividing cache data from permanent data? EG, some bugs i can
subscribe on?


Thanks.

--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797

Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)

Osdoba, Sascha

unread,
May 28, 2024, 5:50:01 AMMay 28
to Marco Gaiarin, enter...@mozilla.org
Hi Marco,

we had the same problems with Firefox but there is no solution from Mozilla. Even Microsoft itself is handling it stupid these days (see Microsoft Teams).

We implemented a Powershell log off script from here (https://bugzilla.mozilla.org/show_bug.cgi?id=1395705) via GPO to get around with it.

But we included only these lines:

$profiles += @(Get-Item -Path "$env:APPDATA\Mozilla\Firefox\Profiles\*\crashes" -ErrorAction Ignore)
$profiles += @(Get-Item -Path "$env:APPDATA\Mozilla\Firefox\Profiles\*\datareporting" -ErrorAction Ignore)
$profiles += @(Get-Item -Path "$env:APPDATA\Mozilla\Firefox\Profiles\*\gmp*" -ErrorAction Ignore)
$profiles += @(Get-Item -Path "$env:APPDATA\Mozilla\Firefox\Profiles\*\minidumps" -ErrorAction Ignore)
$profiles += @(Get-Item -Path "$env:APPDATA\Mozilla\Firefox\Profiles\*\sessionstore-backups" -ErrorAction Ignore)
$profiles += @(Get-Item -Path "$env:APPDATA\Mozilla\Firefox\Profiles\*\shader-cache" -ErrorAction Ignore)
$profiles += @(Get-Item -Path "$env:APPDATA\Mozilla\Firefox\Profiles\*\storage" -ErrorAction Ignore)

and it helped a lot.


Sascha



-----Ursprüngliche Nachricht-----
Von: enter...@mozilla.org <enter...@mozilla.org> Im Auftrag von Marco Gaiarin
Gesendet: Montag, 20. Mai 2024 17:42
An: enter...@mozilla.org
Betreff: [Mozilla Enterprise] Firefox and (roaming) profile management...
--
You received this message because you are subscribed to the Google Groups "enter...@mozilla.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enterprise+...@mozilla.org.
To view this discussion on the web visit https://groups.google.com/a/mozilla.org/d/msgid/enterprise/ZktvZLF3N9OWMu9X%40sv.lnf.it.

Marco Gaiarin

unread,
May 28, 2024, 6:57:36 AMMay 28
to enter...@mozilla.org
Mandi! Osdoba, Sascha
In chel di` si favelave...

> We implemented a Powershell log off script from here (https://bugzilla.mozilla.org/show_bug.cgi?id=1395705) via GPO to get around with it.

Cool! I'm using now links (junction) to move folders from %AppData% to
%LocalAppData%, but this approach it's a but clumsky, and need junction be
enabled for users...


Many thanks!


Indeed, this seems a major trouble for mozilla app... i've subscribed to the
bug, i hope in some feedback from mozilla...

Marco Gaiarin

unread,
May 28, 2024, 11:50:06 AMMay 28
to enter...@mozilla.org
Mandi! Osdoba, Sascha
In chel di` si favelave...

> We implemented a Powershell log off script from here (https://bugzilla.mozilla.org/show_bug.cgi?id=1395705) via GPO to get around with it.

I'm a bit puzzled by powershell; this:

$profilePaths = @($profilePaths) -inotmatch "^AppData\\.*\\Profiles\\.*$"

work as expected, eg match path in registry entry and remove form the
array (to prevent dupes); but these:

$profilePaths = @($profilePaths) -inotmatch "^AppData\\Mozilla\\Firefox\\Profiles\\.*$"
$profilePaths = @($profilePaths) -inotmatch "^AppData\\Thunderbird\\Profiles\\.*$"

NOT.


Also:
$profiles += @(Get-Item -Path "$env:APPDATA\Thunderbird\Profiles\*\ImapMail" -ErrorAction Ignore)

match 'ImapMail' folders in profiles, while:

$profiles += @(Get-Item -Path "$env:APPDATA\Thunderbird\Profiles\Crash Reports*" -ErrorAction Ignore)

does NOT match 'Crash Reports' folder.


Mah...

Marco Gaiarin

unread,
Jun 3, 2024, 9:06:26 AMJun 3
to enter...@mozilla.org

> I'm a bit puzzled by powershell; this:

No. I'm stupid. ;-)


> $profilePaths = @($profilePaths) -inotmatch "^AppData\\.*\\Profiles\\.*$"
> work as expected, eg match path in registry entry and remove form the
> array (to prevent dupes); but these:
> $profilePaths = @($profilePaths) -inotmatch "^AppData\\Mozilla\\Firefox\\Profiles\\.*$"
> $profilePaths = @($profilePaths) -inotmatch "^AppData\\Thunderbird\\Profiles\\.*$"

Because it is 'AppData\\Roaming\\' ...

> Also:
> $profiles += @(Get-Item -Path "$env:APPDATA\Thunderbird\Profiles\*\ImapMail" -ErrorAction Ignore)
> match 'ImapMail' folders in profiles, while:
> $profiles += @(Get-Item -Path "$env:APPDATA\Thunderbird\Profiles\Crash Reports*" -ErrorAction Ignore)
> does NOT match 'Crash Reports' folder.

Because it is NOT 'Thunderbird\Profiles\Crash Reports' but 'Thunderbird\Crash Reports'
.


Sorry.
Reply all
Reply to author
Forward
0 new messages