Making far portable
Making far portable
hi!
i am trying to run a Far3 between various computers, so i tried to make it portable, because having various folders (as defined in %farprofile%) it will be difficult to maintain
so i renamed file, far.exe.example.ini to far.exe.ini (in far root folder) and modified these lines:
;When 0, configuration will be stored in UserProfileDir, UserLocalProfileDir
UseSystemProfiles=0
UserProfileDir=%FARHOME%\Profile
UserLocalProfileDir=%FARHOME%\Profile
then i made the folder \profile in my far folder and put some config files as i asked in this thread, so i made \profile\macros\scripts folders and put there the .lua macros files
then i closed far and delete the previous profile folder in "C:\Documents and Settings\user\Configuración local\Datos de programa\Far Manager\Profile\macros\modules"
then restarted far
the macros files didn't work, so i check the previous profile folder in \appdata\far manager.. and the files were recreated,
so i was thinking if .exe.ini file didn't work, because these files must be created in the new \far\profile\... folder no in previous folder
sorry my english i wait you understand my question, thanks!
i am trying to run a Far3 between various computers, so i tried to make it portable, because having various folders (as defined in %farprofile%) it will be difficult to maintain
so i renamed file, far.exe.example.ini to far.exe.ini (in far root folder) and modified these lines:
;When 0, configuration will be stored in UserProfileDir, UserLocalProfileDir
UseSystemProfiles=0
UserProfileDir=%FARHOME%\Profile
UserLocalProfileDir=%FARHOME%\Profile
then i made the folder \profile in my far folder and put some config files as i asked in this thread, so i made \profile\macros\scripts folders and put there the .lua macros files
then i closed far and delete the previous profile folder in "C:\Documents and Settings\user\Configuración local\Datos de programa\Far Manager\Profile\macros\modules"
then restarted far
the macros files didn't work, so i check the previous profile folder in \appdata\far manager.. and the files were recreated,
so i was thinking if .exe.ini file didn't work, because these files must be created in the new \far\profile\... folder no in previous folder
sorry my english i wait you understand my question, thanks!
-
- Posts: 6840
- Joined: Thu 23 Mar, 2006 21:36
- Location: Israel
- Has thanked: 41 times
- Been thanked: 530 times
Re: Making far portable
That must be your fault (a typo, for example).anormal wrote:the macros files didn't work, so i check the previous profile folder in \appdata\far manager.. and the files were recreated,
so i was thinking if .exe.ini file didn't work, because these files must be created in the new \far\profile\... folder no in previous folder
- HaRT
- Moderator
- Posts: 10868
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 221 times
- Been thanked: 358 times
Re: Making far portable
Is FARHOME set before far.exe.ini is read? Are environment variables being expanded in config values?Shmuel wrote:That must be your fault (a typo, for example).
Фар есть инструмент, а не нянька. © 2009 DrKnS
Re: Making far portable
i've rechecked everything:
my far is installed in
c:\utils\far3\
in this folder i have far.exe files and far.exe.ini file
in far.exe.ini file i have this configuration:
then, why when i load far the profile folder with files history.db.*, plugincache32.db.* and shorcuts.db are recreated ?
maybe am i missing something?
my far is installed in
c:\utils\far3\
in this folder i have far.exe files and far.exe.ini file
in far.exe.ini file i have this configuration:
Code: Select all
;To use this file, rename it to Far.exe.ini
;Far Manager global configuration
[General]
;
;UseSystemProfiles let's you control the location of Far configuration files.
;When 1, configuration will be stored in
;%APPDATA%\Far Manager - for general configuration
;and
;%LOCALAPPDATA%\Far Manager - for history and cache
;When 2, configuration will be stored only in %APPDATA%\Far Manager
;When 0, configuration will be stored in UserProfileDir, UserLocalProfileDir
;The default is 1
;
UseSystemProfiles=0
;
;UserProfileDir/UserLocalProfileDir let's you define a custom location for Far configuration files.
;Takes affect only when UseSystemProfiles=0.
;The default for UserProfile is %FARHOME%\Profile
;By default UserLocalProfileDir == UserProfileDir
;
UserProfileDir=%FARHOME%\Profile
UserLocalProfileDir=%FARHOME%\Profile
maybe am i missing something?
Re: Making far portable
hart: i am not modifying any set variable, i've just installed far and modified far.exe.ini file
thanks!
thanks!
Re: Making far portable
drkns: i supposed that, but also i think if they are defined as this it must work, because i can write this
UserProfileDir=c:\utils\far3\profile
but then, as make far3 portable?
thanks!
UserProfileDir=c:\utils\far3\profile
but then, as make far3 portable?
thanks!
-
- Posts: 6840
- Joined: Thu 23 Mar, 2006 21:36
- Location: Israel
- Has thanked: 41 times
- Been thanked: 530 times
Re: Making far portable
Many many users in this forum run Far with UseSystemProfiles=0 and everything works as expected. I really don't know how we can help you.anormal wrote:but then, as make far3 portable?
Re: Making far portable
ok... i'll try to use filemon and procmon tools to test file access and such
will report results, thanks!
will report results, thanks!
Re: Making far portable
SOLVED
i had 2 different Far3 installations, one in c:\program files\ and one in c:\utils\
so my links in the desktop where pointing the bad and older installation
sorry for being a little retard
thanks friends!
i had 2 different Far3 installations, one in c:\program files\ and one in c:\utils\
so my links in the desktop where pointing the bad and older installation
sorry for being a little retard
thanks friends!