Making far portable

You have encountered a problem using Far Manager? Here you can get help.
Post Reply
anormal
Posts: 12
Joined: Thu 10 Jan, 2013 11:06

Making far portable

Post by anormal »

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!
Shmuel
Posts: 6840
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 41 times
Been thanked: 530 times

Re: Making far portable

Post by Shmuel »

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
That must be your fault (a typo, for example).
User avatar
HaRT
Moderator
Posts: 10868
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

Re: Making far portable

Post by HaRT »

Shmuel wrote:That must be your fault (a typo, for example).
Is FARHOME set before far.exe.ini is read? Are environment variables being expanded in config values?
Фар есть инструмент, а не нянька. © 2009 DrKnS
anormal
Posts: 12
Joined: Thu 10 Jan, 2013 11:06

Re: Making far portable

Post by anormal »

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:

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
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?
anormal
Posts: 12
Joined: Thu 10 Jan, 2013 11:06

Re: Making far portable

Post by anormal »

hart: i am not modifying any set variable, i've just installed far and modified far.exe.ini file

thanks!
User avatar
DrKnS
Posts: 6114
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 12 times
Been thanked: 426 times

Re: Making far portable

Post by DrKnS »

UserProfileDir=%FARHOME%\Profile
UserLocalProfileDir=%FARHOME%\Profile
You don't need to uncomment these lines, default values are the same.
anormal
Posts: 12
Joined: Thu 10 Jan, 2013 11:06

Re: Making far portable

Post by anormal »

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!
Shmuel
Posts: 6840
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 41 times
Been thanked: 530 times

Re: Making far portable

Post by Shmuel »

anormal wrote:but then, as make far3 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
Posts: 12
Joined: Thu 10 Jan, 2013 11:06

Re: Making far portable

Post by anormal »

ok... i'll try to use filemon and procmon tools to test file access and such

will report results, thanks!
anormal
Posts: 12
Joined: Thu 10 Jan, 2013 11:06

Re: Making far portable

Post by anormal »

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 :D

thanks friends!
Post Reply

Return to “Support and Troubleshooting”