NFN Smith wrote on 18/3/21 2:26 am:
Dirk Fieldhouse wrote:
On 17/03/2021 06:12, Daniel wrote:
Jonathan N. Little wrote on 16/3/21 11:03 pm:
...>
%APPDATA% is an environmental variable in Windows like $HOME is for
Linux. In Windows the profile is in a hidden directory off of the user
directory C:\Users\USERNAME\Appdata\Mozilla\SeaMonkey whereas in Linux
it is in the hidden directory /home/USERNAME/.mozilla/seamonkey
So, if I had my profile at
H:\here\there\anywhere\AppData\Roaming\Mozilla\Seamonkey\Profiles
would the %APPDATA%\Mozilla\Seamonkey command locate my Profile??
Only if the APPDATA environment variable were set to
'H:\here\there\anywhere\AppData\Roaming'.
Then the string '%APPDATA%\Mozilla\Seamonkey' would identify where
your Profiles directory is, in a context where environment variables
are expanded; one of those is a script (CMD or PowerShell); another is
reading a string from a Windows registry setting of type REG_EXPAND_SZ
(the normal way APPDATA is used).
Plus, if you have %APPDATA% set to something other than what Microsoft
provides, it means that *all* your application data would be located
there, and nearly anything you have installed on your computer is going
to have a folder there. There may be specific reason that you might
want to do that, but if you do, you had better know exactly what you're
doing, as you run a real risk of screwing up your computer, especially
if H: is on removable media. Even H: as a networked location is
questionable.
If you think you might want to relocate your Seamonkey data, then the
way of doing that is by editing your profiles.ini file, and changing the
location that it points to (and not touching other application data).
Environment variables can be set system-wide as well as per-user in
Windows (and, somewhat differently, in Unix-like OSs). The settings
are inherited down the process hierarchy. See
<https://en.wikipedia.org/wiki/Environment_variable>.
Really useful, if you know what to do with them.
As noted previously, on my primary working machine, I typically set
several for my own use, including the location of a folder that's fairly
far down in the directory hierarchy, making it easy to get to quickly,
both through the Windows Explorer and from a command prompt. The value
to the command prompt is getting to that data quickly without having to
manually enter the entire path to get there. I also have a couple of
command-based utilities, where use of environment variables allows me to
set a couple of default conditions, so that I don't have to remember
those settings when I'm using them.
Smith
O.K., so not as useful as I'd hoped. Thanks.
--
Daniel
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101
SeaMonkey/2.53.6 Build identifier: 20210117210643
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
SeaMonkey/2.53.6 Build identifier: 20210118013008
_______________________________________________
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey